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