Spawn commands like `child_process.exec` does but return a `ChildProcess`

npm install spawn-command
39 downloads in the last day
573 downloads in the last week
2 674 downloads in the last month

spawn-command Build Status

Spawn commands like child_process.exec does but return a ChildProcess.


npm install spawn-command


var spawnCommand = require('spawn-command'),
    child = spawnCommand('echo "Hello spawn" | base64');

child.stdout.on('data', function (data) {
  console.log('data', data);

child.on('exit', function (exitCode) {
  console.log('exit', exitCode);
npm loves you