4 ms·
This is good, enabling people with Javascript proficiency write complex scripts IMO. There is also https://github.com/shelljs/shelljs https://github.com/shellj
by chetangoti 5y ago
This is good, enabling people with Javascript proficiency write complex scripts IMO.
There is also https://github.com/shelljs/shelljs https://github.com/shelljs/shelljs which is implemented on top of nodejs APIs.
- jeswin 5y agoIf you like shelljs, then check out https://bashojs.org https://bashojs.org (mine). # Example, list all dev dependencies: cat package.json | basho --json 'Object.keys(x.devDependencies)'
- Too 5y agoI think use case of shelljs and this zx is more for developers who need to perform file system and subprocess operations but rather stay away from bash or other footgun-ridden shells and instead write things in safe code with access to richer data types and more libraries. bashojs seem to start in the other end, add js statement-execution to shells and and yet another pipeline-language in the mix. More like AWK with js-syntax. Looks good as a "jq" on steroids but i wouldn't compare it to shelljs.
- niffydroid 5y agoI pretty much got rid of my bash scripts and just replaced them using shelljs. Makes it a lot easier and quicker to maintain, it means any developer can jump in fix it and add to it.