Maik 79c46dcb5d modul 3 years ago
..
examples 79c46dcb5d modul 3 years ago
lib 79c46dcb5d modul 3 years ago
test 79c46dcb5d modul 3 years ago
.npmignore 79c46dcb5d modul 3 years ago
.travis.yml 79c46dcb5d modul 3 years ago
LICENSE 79c46dcb5d modul 3 years ago
README.md 79c46dcb5d modul 3 years ago
package.json 79c46dcb5d modul 3 years 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);
});