Spawn commands like `child_process.exec` does but return a `ChildProcess`.
Switch branches/tags
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples verbatim args Nov 6, 2012
lib verbatim args Nov 6, 2012
test Use `close` event and drop 0.8 Oct 9, 2014
.gitignore .gitignore Jun 20, 2012
.travis.yml Use `close` event and drop 0.8 Oct 9, 2014
LICENSE [doc] README and LICENSE Jun 20, 2012
README.md [doc] Fix wrong example code Nov 6, 2012
package.json Version 0.0.2-1 Oct 9, 2014

README.md

spawn-command Build Status

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

Installation

npm install spawn-command

Usage

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);
});