Spawns a process and makes it simple to pipe data in and get data out.
npm install spawn-promiseSpawns a process and makes it simple to pipe data in and get data out.





``sh`
npm install spawn-promise
`js
var spawn = require(spawn-promise);
spawn('grep', ['H'], 'Hello').then(function (buffer) {
console.log(buffer.toString()); // Hello
});
`
- spawn
---
#### spawn ( command [, args] [, input] )
Spawns a child process with the given command, writes the input value to stdin, and returns a Promise that is fulfilled with the concatenated stdout buffer.
__Arguments__
- command - The command to run.args
- - An array of arguments to run the command with.input
- - The value to write to stdin`.