Package Exports
- spawn-command
- spawn-command/lib/spawn-command.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (spawn-command) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
spawn-command
Spawn commands like child_process.exec does but return a ChildProcess.
Installation
npm install spawn-commandUsage
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);
});