Comments (3)
If you just want to use it, try npm install -g [email protected]
(the last version to bundle yargs), if you want to dev pull the ascii-art-cl
repo and do a dev install. Either way should work.
The specific error you're getting is related to plugin support which allows you to 1) fetch remote URLs and 2) install plugins for particular ascii-art sources. (the last release was the first feature complete version for this change, so it's likely that this broke something).
The good news is come 3.0 there will be command line tests, to limit this (currently tests are for the API only)
from ascii-art.
Yargs has been pulled as a core dependency, due to security warnings... thus you cannot currently install -g
.
I will update the docs shortly... for now just use the experimental CL with npm install -g ascii-art-cl
which will be the mainline for commandline use going forward.
from ascii-art.
Hello @khrome ! I'm interested in using your library and possibly contributing to it. The images on the readme look really good!
Installing like you said on the comment of this thread
npm install -g ascii-art-cl
and trying the readme examples yields another error
me@computer:~/$ ascii-art image -B 32 -a solid ./escher.jpeg
logging conf:
[String: '{\n' +
' // defaults go here.\n' +
' "bitdepth": 2,\n' +
' //request-as-request, fetch-as-request, axios-as-request\n' +
' "requestlib": "request-as-request",\n' +
' "artwork": []\n' +
'}']
/home/me/.nvm/versions/node/v17.3.0/lib/node_modules/ascii-art-cl/bin/ascii-art:250
conf.artwork.forEach(function(source){
^
TypeError: Cannot read properties of undefined (reading 'forEach')
at /home/me/.nvm/versions/node/v17.3.0/lib/node_modules/ascii-art-cl/bin/ascii-art:250:34
at done (/home/me/.nvm/versions/node/v17.3.0/lib/node_modules/ascii-art-cl/node_modules/app-term-kit/app.js:508:16)
at CLApp.plugins (/home/me/.nvm/versions/node/v17.3.0/lib/node_modules/ascii-art-cl/node_modules/app-term-kit/app.js:513:10)
at /home/me/.nvm/versions/node/v17.3.0/lib/node_modules/ascii-art-cl/bin/ascii-art:240:21
at /home/me/.nvm/versions/node/v17.3.0/lib/node_modules/ascii-art-cl/node_modules/app-term-kit/app.js:365:9
at Timeout._onTimeout (/home/me/.nvm/versions/node/v17.3.0/lib/node_modules/ascii-art-cl/node_modules/app-term-kit/app.js:305:20)
at listOnTimeout (node:internal/timers:568:17)
at processTimers (node:internal/timers:510:7)
Node.js v17.3.0
Am I missing something? Did the CLI's API change on this experimental version?
(I put a console.log on the conf object that raises the error, maybe it helps)
from ascii-art.
Related Issues (20)
- How to use more colors converting from image? HOT 4
- Security issue HOT 2
- Replace [email protected] by [email protected] (or latest) HOT 3
- Using command in terminal HOT 4
- Hosted API HOT 3
- Replace request lib HOT 1
- root.Image is not a constructor HOT 4
- Update canvas HOT 1
- stipple doesn't seem to be supported in non-cli version HOT 6
- How do I use this in [browser or browser framework]? HOT 1
- Module not found: Can't resolve 'fs' HOT 6
- Add basic use in README.md HOT 1
- [ERROR] No loader is configured for ".node" files: node_modules/canvas/build/Release/canvas.node HOT 1
- no output from image with node v14.18.0 HOT 5
- types are incomplete HOT 1
- Increase color depth? HOT 1
- Security updates in deps HOT 1
- This does not install non-contributed fonts HOT 6
- Error trying to use art.Image HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ascii-art.