D8D 3fa1803c80 Initial commit 1 年之前
..
examples 3fa1803c80 Initial commit 1 年之前
lib 3fa1803c80 Initial commit 1 年之前
test 3fa1803c80 Initial commit 1 年之前
.npmignore 3fa1803c80 Initial commit 1 年之前
.travis.yml 3fa1803c80 Initial commit 1 年之前
LICENSE 3fa1803c80 Initial commit 1 年之前
README.md 3fa1803c80 Initial commit 1 年之前
package.json 3fa1803c80 Initial commit 1 年之前

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