ShellJS is a portable (Windows/Linux/macOS) implementation of Unix shell commands on top of the Node.js API. You can use it to eliminate your shell script's dependency on Unix while still keeping its familiar and powerful commands. You can also install it globally so you can run it from outside Node projects, say goodbye to those gnarly Bash scripts! ShellJS is proudly tested on every node release since v8! ShellJS now supports third-party plugins! You can learn more about using plugins and writing your own ShellJS commands in the wiki. The most important thing is to require the most recent version of ShellJS as a peer-dependency. If you want to add unit tests for your plugin as well, you'll probably want it as a dev-dependency too.
Features
- The project is unit-tested and battle-tested
- If you just want cross platform UNIX commands, checkout our new project shelljs/shx
- ShellJS now supports third-party plugins!
- All commands run synchronously, unless otherwise stated
- Commands can send their output to another command in a pipe-like fashion
- Write your own ShellJS commands