testea3 e0d4df7f58 ola mundo 11 months ago
..
examples e0d4df7f58 ola mundo 11 months ago
lib e0d4df7f58 ola mundo 11 months ago
test e0d4df7f58 ola mundo 11 months ago
.npmignore e0d4df7f58 ola mundo 11 months ago
.travis.yml e0d4df7f58 ola mundo 11 months ago
LICENSE e0d4df7f58 ola mundo 11 months ago
README.md e0d4df7f58 ola mundo 11 months ago
package.json e0d4df7f58 ola mundo 11 months ago

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