execute shell commands from node.js, synchronous, with stdin, stdout, stderr.
npm install exe> execute shell commands from node.js
>
> . synchronous
>
> .. with stdin, stdout, stderr and with environment variables
>
> ... as you would expect when executing commands in the shell itself
``sh`
npm i -S exe
`js
var exeCute = require('exe');
exeCute('echo "hello world"');
//> hello world
exeCute('echo "$PATH"');
// prints PATH environment variable
`
> - same arguments as execSync
>
> - with the following default options:
>
> `js`
> {
> stdio :[0,1,2],
> env: process.env
> }
>
sh
npm test
`
note
> requires node version >= 0.12.x since it uses child_process.execSync(command[, options])` introduced in 0.12.