testea3 e0d4df7f58 ola mundo | 11 ヶ月 前 | |
---|---|---|
.. | ||
examples | 11 ヶ月 前 | |
lib | 11 ヶ月 前 | |
test | 11 ヶ月 前 | |
.npmignore | 11 ヶ月 前 | |
.travis.yml | 11 ヶ月 前 | |
LICENSE | 11 ヶ月 前 | |
README.md | 11 ヶ月 前 | |
package.json | 11 ヶ月 前 |
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);
});