|
|
hai 1 ano | |
|---|---|---|
| .. | ||
| examples | hai 1 ano | |
| lib | hai 1 ano | |
| test | hai 1 ano | |
| .npmignore | hai 1 ano | |
| .travis.yml | hai 1 ano | |
| LICENSE | hai 1 ano | |
| README.md | hai 1 ano | |
| package.json | hai 1 ano | |

Spawn commands like child_process.exec does but return a ChildProcess.
npm install spawn-command
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);
});