{"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":{"integrity":"sha512-Kz33ip6NRNKuyTRo3aDWyWxeGeM0ORDO552Fs6E1nj4pLWPkl37SrRtTnq+MEopVaqgmaO6bAvVS+v64BJ5M/A==","shasum":"51cf5831ba2bf418aa3ec2102d40b75cfd48b6f2","tarball":"http://registry-npm.ywwl.com/spawn-please/download/spawn-please-1.0.0.tgz","fileCount":10,"unpackedSize":8859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqahcCRA9TVsSAnZWagAAmoUP/0EgDKBu3kzwxRwFRzNq\nAOvbeOWld9LyiQ0uWzZ3ovbJtlinVxWORty9Iu4GEO+snVTM2R5muGnwzG96\n99vNGlUm8qMF1VZCD8eyt47zUG5FiNra4P5XJACQU+ritENb8hoUEMfRJ7M3\ngQ/Di30/T58gXdhLAcC9DZmMVkFVgpHi0wk8F/esPeVQpfPsWBkwiQNFgflT\nJSs0meM9ONG+o4lnCch62+fuS4hdbryL8gcibvtFlAD6eqdB1oSLuBwSt2Xu\nf7RuX3p4yc+5KEvNJ8G4OpezIiFnbSn0uL3varbMOF9ZnFW8j4XZ8QbNIXsy\nvSuhHsKfnJuciPlZ0ESwsrA9Eg3Xpe6A4TRsF/LkGDBNjorUpbuyf5UIzsk4\nVSoFO7EX6VIRmd9HJPfJFTSbN82kze1RQ9e/KTX0JeYzfb8GKaA2Kqo8a8hl\n/g9VTcnGsUJig/aEXJQ1IRdwxlRqc0q3rGEcM/jt3D01tASIb48uApQjExVh\nmjvpbregaTVAxFMJZfa8QY36CodPgB5ZhDfu3DsiQyAM+FQH3723x5FLpZxX\nojtRXZL0uLSO7FoLZxMRv6XfPqLERrfE00MIP7/YaBYvxNWOno9Xq21F9gs5\nplXj3PPPfEyJ1yIMdB5F2enkIAh4L2OG/sX6cJpGzpMEPknwq+jnek9YSkjl\nJyFb\r\n=fPMT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5sH0KOQrcVVKnGhvxjYh8SfvcI5j6SKbsSGjysWHMEQIgNaV3UXr8gf0h2KcmXuRr4x2nyKljTVqEHmaXYiwfCO8="}],"size":3674,"noattachment":false,"key":"/spawn-please/-/spawn-please-1.0.0.tgz"},"_npmUser":{"name":"raine","email":"raine@cybersemics.org"},"directories":{},"maintainers":[{"name":"raine","email":"raine@cybersemics.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spawn-please_1.0.0_1604954203695_0.5448236423021018"},"_hasShrinkwrap":false,"readme":"# spawn-please\n\n[![npm version](https://img.shields.io/npm/v/spawn-please.svg)](https://npmjs.org/package/spawn-please)\n\nEasy and small child_process.spawn.\n\n- Promise-based\n- Cross-platform\n- Pass stdin as an argument\n- Rejects on stderr by default, even if exit code is 0\n\n## Install\n\n```sh\n$ npm install --save spawn-please\n```\n\n## Usage\n\n```typescript\n(\n  command: string,\n  args?: string[],\n  options?: Options,\n  spawnOptions?: any,\n): Promise<{\n  stdout: string\n  stderr: string\n}>\n```\n\n```js\nimport spawn from 'spawn-please'\n\nconst { stdout, stderr } = await spawn('printf', ['please?'])\n\nassert.equal(stdout, 'please?')\nassert.equal(stderr, '')\n```\n\n## Options\n\n- `rejectOnError: boolean` - Throws an error if stderr is non-empty. Default: true.\n- `stdin: string` - Send stdin to the spawned child process.\n- `stdout: (data: string) => void` - Stream stdout by chunk.\n- `stderr: (data: string) => void` - Stream stderr by chunk.\n\n## License\n\nISC © [Raine Revere](https://github.com/raineorshine)\n","publish_time":1604954203883,"_cnpm_publish_time":1604954203883,"dist-tags":{"latest":"4.0.0"}}