Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you like shelljs, then check out https://bashojs.org (mine).

  # Example, list all dev dependencies:
  cat package.json | basho --json 'Object.keys(x.devDependencies)'


I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: