{"_id":"spawn-please","_rev":"372930","name":"spawn-please","description":"Promisified child_process.spawn. *Supports stdin* *Rejects on stderr*","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"npm:raine","email":""}],"time":{"modified":"2021-07-27T06:08:16.000Z","created":"2015-08-07T14:58:11.135Z","1.0.0":"2020-11-09T20:36:43.883Z","0.4.1":"2020-08-16T00:38:35.441Z","0.4.0":"2020-08-16T00:37:05.130Z","0.3.0":"2017-05-28T16:52:08.659Z","0.2.0":"2016-10-21T15:18:19.833Z","0.1.0":"2015-08-07T14:58:11.135Z"},"users":{},"author":{"name":"Raine Revere","url":"https://github.com/raineorshine"},"repository":{"type":"git","url":"git+https://github.com/raineorshine/spawn-please.git"},"versions":{"1.0.0":{"name":"spawn-please","version":"1.0.0","description":"Promisified child_process.spawn. *Supports stdin* *Rejects on stderr*","license":"ISC","repository":{"type":"git","url":"git+https://github.com/raineorshine/spawn-please.git"},"author":{"name":"Raine Revere","url":"https://github.com/raineorshine"},"engines":{"node":">=10"},"scripts":{"test":"mocha","lint":"eslint .","lintfix":"eslint --fix .","watch":"nodemon -w index.js -w test -x 'npm test'"},"keywords":["promise","promisified","child_process","child process","exec","spawn","stdin","stdout","stderr"],"devDependencies":{"bluebird":"^3.7.2","chai":"^4.2.0","chai-as-promised":"^7.1.1","eslint":"^7.13.0","eslint-config-standard":"^16.0.1","eslint-plugin-fp":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jsdoc":"^30.7.7","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.2","mocha":"^8.2.1","nodemon":"^2.0.6","require-new":"^1.1.0"},"gitHead":"ccf955a7829be3153637518385c583510ee692a3","bugs":{"url":"https://github.com/raineorshine/spawn-please/issues"},"homepage":"https://github.com/raineorshine/spawn-please#readme","_id":"spawn-please@1.0.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"51cf5831ba2bf418aa3ec2102d40b75cfd48b6f2","size":3674,"noattachment":false,"key":"/spawn-please/-/spawn-please-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/spawn-please/download/spawn-please-1.0.0.tgz"},"_npmUser":{"name":"raine","email":"raine@cybersemics.org"},"directories":{},"maintainers":[{"name":"npm:raine","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spawn-please_1.0.0_1604954203695_0.5448236423021018"},"_hasShrinkwrap":false,"publish_time":1604954203883,"_cnpm_publish_time":1604954203883},"0.4.1":{"name":"spawn-please","version":"0.4.1","description":"Promisified child_process.spawn. *Supports stdin* *Rejects on stderr*","license":"ISC","repository":{"type":"git","url":"git+https://github.com/metaraine/spawn-please.git"},"author":{"name":"Raine Lourie","url":"https://github.com/metaraine"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","devtest":"nodemon -w index.js -w test -x 'npm test'"},"keywords":["promise","promisified","child_process","child process","exec","spawn","stdin","stdout","stderr"],"devDependencies":{"bluebird":"^2.9.34","chai":"^3.2.0","chai-as-promised":"^5.1.0","mocha":"^2.2.5","nodemon":"^1.4.0","require-new":"^1.0.2"},"gitHead":"6df6f40cdb931c3fbc0e2d25bbe7d59e589f5b17","bugs":{"url":"https://github.com/metaraine/spawn-please/issues"},"homepage":"https://github.com/metaraine/spawn-please#readme","_id":"spawn-please@0.4.1","_nodeVersion":"12.13.0","_npmVersion":"6.14.7","dist":{"shasum":"bd1ac03c7736a45c0bf3d0e7ab8b3169aef321d5","size":3110,"noattachment":false,"key":"/spawn-please/-/spawn-please-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/spawn-please/download/spawn-please-0.4.1.tgz"},"maintainers":[{"name":"npm:raine","email":""}],"_npmUser":{"name":"raine","email":"raine@cybersemics.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spawn-please_0.4.1_1597538315313_0.23748390692585297"},"_hasShrinkwrap":false,"publish_time":1597538315441,"_cnpm_publish_time":1597538315441},"0.4.0":{"name":"spawn-please","version":"0.4.0","description":"Promisified child_process.spawn. *Supports stdin* *Rejects on stderr*","license":"ISC","repository":{"type":"git","url":"git+https://github.com/metaraine/spawn-please.git"},"author":{"name":"Raine Lourie","url":"https://github.com/metaraine"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","devtest":"nodemon -w index.js -w test -x 'npm test'"},"keywords":["promise","promisified","child_process","child process","exec","spawn","stdin","stdout","stderr"],"devDependencies":{"bluebird":"^2.9.34","chai":"^3.2.0","chai-as-promised":"^5.1.0","mocha":"^2.2.5","nodemon":"^1.4.0","require-new":"^1.0.2"},"gitHead":"30f13c5177d342b3da2d318f3dab3854deb9f1c9","bugs":{"url":"https://github.com/metaraine/spawn-please/issues"},"homepage":"https://github.com/metaraine/spawn-please#readme","_id":"spawn-please@0.4.0","_nodeVersion":"12.13.0","_npmVersion":"6.14.7","dist":{"shasum":"fad7441bb93001e83d2d125fbb27b0e291510bc5","size":3113,"noattachment":false,"key":"/spawn-please/-/spawn-please-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/spawn-please/download/spawn-please-0.4.0.tgz"},"maintainers":[{"name":"npm:raine","email":""}],"_npmUser":{"name":"raine","email":"raine@cybersemics.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spawn-please_0.4.0_1597538225010_0.7038373410635619"},"_hasShrinkwrap":false,"publish_time":1597538225130,"_cnpm_publish_time":1597538225130},"0.3.0":{"name":"spawn-please","version":"0.3.0","description":"Promisified child_process.spawn. *Supports stdin* *Rejects on stderr*","license":"ISC","repository":{"type":"git","url":"git+https://github.com/metaraine/spawn-please.git"},"author":{"name":"Raine Lourie","url":"https://github.com/metaraine"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","devtest":"nodemon -w index.js -w test -x 'npm test'"},"keywords":["promise","promisified","child_process","child process","exec","spawn","stdin","stdout","stderr"],"devDependencies":{"bluebird":"^2.9.34","chai":"^3.2.0","chai-as-promised":"^5.1.0","mocha":"^2.2.5","nodemon":"^1.4.0","require-new":"^1.0.2"},"gitHead":"e252dfaa4ffd3d5100232e5e970946d48fc362b6","bugs":{"url":"https://github.com/metaraine/spawn-please/issues"},"homepage":"https://github.com/metaraine/spawn-please#readme","_id":"spawn-please@0.3.0","_shasum":"db338ec4cff63abc69f1d0e08cee9eb8bebd9d11","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"raine","email":"raineorshine@gmail.com"},"dist":{"shasum":"db338ec4cff63abc69f1d0e08cee9eb8bebd9d11","size":17243,"noattachment":false,"key":"/spawn-please/-/spawn-please-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/spawn-please/download/spawn-please-0.3.0.tgz"},"maintainers":[{"name":"npm:raine","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spawn-please-0.3.0.tgz_1495990327591_0.21492233010940254"},"directories":{},"publish_time":1495990328659,"_hasShrinkwrap":false,"_cnpm_publish_time":1495990328659},"0.2.0":{"name":"spawn-please","version":"0.2.0","description":"Promisified child_process.spawn. *Supports stdin* *Rejects on stderr*","license":"ISC","repository":{"type":"git","url":"git+https://github.com/metaraine/spawn-please.git"},"author":{"name":"Raine Lourie","url":"https://github.com/metaraine"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","devtest":"nodemon -w index.js -w test -x 'npm test'"},"keywords":["promise","promisified","child_process","child process","exec","spawn","stdin","stdout","stderr"],"devDependencies":{"bluebird":"^2.9.34","chai":"^3.2.0","chai-as-promised":"^5.1.0","mocha":"^2.2.5","nodemon":"^1.4.0","require-new":"^1.0.2"},"gitHead":"99ca0ebc5f55173aa78fbc5a19fdd835405126a8","bugs":{"url":"https://github.com/metaraine/spawn-please/issues"},"homepage":"https://github.com/metaraine/spawn-please#readme","_id":"spawn-please@0.2.0","_shasum":"bdd85991b80409f9c0dac709bc44a0a318a9760d","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"raine","email":"raineorshine@gmail.com"},"dist":{"shasum":"bdd85991b80409f9c0dac709bc44a0a318a9760d","size":2920,"noattachment":false,"key":"/spawn-please/-/spawn-please-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/spawn-please/download/spawn-please-0.2.0.tgz"},"maintainers":[{"name":"npm:raine","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/spawn-please-0.2.0.tgz_1477063097657_0.648832471575588"},"directories":{},"publish_time":1477063099833,"_cnpm_publish_time":1477063099833,"_hasShrinkwrap":false},"0.1.0":{"name":"spawn-please","version":"0.1.0","description":"Promisified child_process.spawn. *Supports stdin* *Rejects on stderr*","license":"ISC","repository":{"type":"git","url":"git+https://github.com/metaraine/spawn-please.git"},"author":{"name":"Raine Lourie","url":"https://github.com/metaraine"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","devtest":"nodemon -w index.js -w test -x 'npm test'"},"keywords":["promise","promisified","child_process","child process","exec","spawn","stdin","stdout","stderr"],"devDependencies":{"bluebird":"^2.9.34","chai":"^3.2.0","chai-as-promised":"^5.1.0","mocha":"^2.2.5","nodemon":"^1.4.0","require-new":"^1.0.2"},"gitHead":"d6cd0e53e6cebfab1cb55420c6d97c15c34ed146","bugs":{"url":"https://github.com/metaraine/spawn-please/issues"},"homepage":"https://github.com/metaraine/spawn-please#readme","_id":"spawn-please@0.1.0","_shasum":"d4113ad6582445d076d1099997f0b250d7ddbaac","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.2","_npmUser":{"name":"raine","email":"raineorshine@gmail.com"},"maintainers":[{"name":"npm:raine","email":""}],"dist":{"shasum":"d4113ad6582445d076d1099997f0b250d7ddbaac","size":2708,"noattachment":false,"key":"/spawn-please/-/spawn-please-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/spawn-please/download/spawn-please-0.1.0.tgz"},"directories":{},"publish_time":1438959491135,"_cnpm_publish_time":1438959491135,"_hasShrinkwrap":false}},"readme":"# spawn-please\n[![npm version](https://img.shields.io/npm/v/spawn-please.svg)](https://npmjs.org/package/spawn-please)\n\nPromisified child_process.spawn. \\*Supports stdin* \\*Rejects on stderr*\n\n## Install\n\n```sh\n$ npm install --save spawn-please\n```\n\n## Usage\n\n> `await spawn(command, [arguments], [stdin], [options])`\n\n`options` are passed directly to `child_process.spawn`.\n\n```js\nconst spawn = require('spawn-please')\n\nconst output = await spawn('printf', ['please?'])\nassert.equal(output, 'please?')\n```\n\n### How is this different than other child_process libraries?\n\n- Allows you to pass a string to stdin:\n\n```js\nconst output = await spawn('cat', [], 'test')\nassert.equal(output, 'test')\n\n```\n- Rejects on any stderr:\n\n```js\ntry {\n  spawn('some-command-with-stderr')\n}\ncatch (stderr) {\n  // do something with stderr\n}\n```\n\n### Using your own Promise library\n\n**spawn-please** uses the global Promise object by default. You may use your own Promise library by overriding the Promise property:\n\n```js\nconst spawn = require('spawn-please')\nspawn.Promise = require('bluebird')\n```\n\n## License\n\nISC © [Raine Revere](https://github.com/raineorshine)\n","_attachments":{},"homepage":"https://github.com/raineorshine/spawn-please#readme","bugs":{"url":"https://github.com/raineorshine/spawn-please/issues"},"license":"ISC"}