{"name":"spawn-promise","version":"0.1.8","description":"Spawns a process and makes it simple to pipe data in and get data out.","repository":{"type":"git","url":"git+https://github.com/panosoft/spawn-promise.git"},"main":"lib/index.js","scripts":{"test":"mocha --harmony_arrow_functions"},"author":"","license":"MIT","dependencies":{"co":"^4.6.0"},"devDependencies":{"chai":"^3.2.0","chai-as-promised":"^5.1.0","mocha":"^2.2.5"},"gitHead":"06e0d9b8fe386e40ddf2eb404e79baf391cab941","bugs":{"url":"https://github.com/panosoft/spawn-promise/issues"},"homepage":"https://github.com/panosoft/spawn-promise#readme","_id":"spawn-promise@0.1.8","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"panosoft","email":"charles@panosoft.com"},"dist":{"integrity":"sha512-pTkEOFxvYLq9SaI1d8bwepj0yD9Yyz65+4e979YZLv/L3oYPxZpDTabcm6e+KIZniGK9mQ+LGrwB5s1v2z67nQ==","shasum":"a5bea98814c48f52cbe02720e7fe2d6fc3b5119a","tarball":"http://registry-npm.ywwl.com/spawn-promise/download/spawn-promise-0.1.8.tgz","fileCount":6,"unpackedSize":4296,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvKmZCbnpQ4YW8GA9NgJYq66Ba/jym8JT9HBrT9cPTQgIhAPbxQDKxzCUzwp594DUtkIvfwL40gu5/gbD4dsyk9GS3"}],"size":1972,"noattachment":false,"key":"/spawn-promise/-/spawn-promise-0.1.8.tgz"},"maintainers":[{"email":"charles@panosoft.com","name":"panosoft"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spawn-promise_0.1.8_1520542907677_0.529645861908941"},"_hasShrinkwrap":false,"readme":"# spawn-promise\n\nSpawns a process and makes it simple to pipe data in and get data out.\n\n[![npm version](https://img.shields.io/npm/v/spawn-promise.svg)](https://www.npmjs.com/package/spawn-promise)\n[![npm license](https://img.shields.io/npm/l/spawn-promise.svg)](https://www.npmjs.com/package/spawn-promise)\n[![Travis](https://img.shields.io/travis/panosoft/spawn-promise.svg)](https://travis-ci.org/panosoft/spawn-promise)\n[![David](https://img.shields.io/david/panosoft/spawn-promise.svg)](https://david-dm.org/panosoft/spawn-promise)\n[![npm downloads](https://img.shields.io/npm/dm/spawn-promise.svg)](https://www.npmjs.com/package/spawn-promise)\n\n## Installation\n\n```sh\nnpm install spawn-promise\n```\n\n## Usage\n\n```js\nvar spawn = require(spawn-promise);\n\nspawn('grep', ['H'], 'Hello').then(function (buffer) {\n  console.log(buffer.toString()); // Hello\n});\n```\n\n## API\n\n- [`spawn`](#spawn)\n\n---\n\n<a name=\"spawn\"></a>\n#### spawn ( command [, args] [, input] )\n\nSpawns 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.\n\n__Arguments__\n\n- `command` - The command to run.\n- `args` - An array of arguments to run the `command` with.\n- `input` - The value to write to `stdin`.\n","publish_time":1520542907782,"_cnpm_publish_time":1520542907782,"dist-tags":{"latest":"0.1.8"}}