testea3 e0d4df7f58 ola mundo 11 ヶ月 前
..
examples e0d4df7f58 ola mundo 11 ヶ月 前
lib e0d4df7f58 ola mundo 11 ヶ月 前
test e0d4df7f58 ola mundo 11 ヶ月 前
.npmignore e0d4df7f58 ola mundo 11 ヶ月 前
.travis.yml e0d4df7f58 ola mundo 11 ヶ月 前
LICENSE e0d4df7f58 ola mundo 11 ヶ月 前
README.md e0d4df7f58 ola mundo 11 ヶ月 前
package.json e0d4df7f58 ola mundo 11 ヶ月 前

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