4 ms·
If you like shelljs, then check out https://bashojs.org https://bashojs.org (mine). # Example, list all dev dependencies: cat package.json | basho --json '
by jeswin 5y ago
If 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.