{"name":"spawn-please","version":"2.0.2","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":">=14"},"scripts":{"build":"tsc","lint":"eslint .","lintfix":"eslint --fix .","test":"mocha"},"keywords":["promise","promisified","child_process","child process","exec","spawn","stdin","stdout","stderr"],"devDependencies":{"chai":"^4.3.7","chai-as-promised":"^7.1.1","eslint":"^8.47.0","eslint-config-prettier":"^9.0.0","eslint-config-raine":"^0.4.0","eslint-config-standard":"^17.1.0","eslint-plugin-fp":"^2.3.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^39.3.14","eslint-plugin-n":"^16.0.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^6.1.1","eslint-plugin-standard":"^4.1.0","mocha":"^10.2.0","nodemon":"^3.0.1","prettier":"^3.0.2","require-new":"^1.1.0","typescript":"^5.1.6"},"dependencies":{"cross-spawn":"^7.0.3"},"types":"./index.d.ts","gitHead":"4886eb555889fda41d9422673ff93625c578e0cc","bugs":{"url":"https://github.com/raineorshine/spawn-please/issues"},"homepage":"https://github.com/raineorshine/spawn-please#readme","_id":"spawn-please@2.0.2","_nodeVersion":"16.15.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-KM8coezO6ISQ89c1BzyWNtcn2V2kAVtwIXd3cN/V5a0xPYc1F/vydrRc01wsKFEQ/p+V1a4sw4z2yMITIXrgGw==","shasum":"41912d82fe9504dd5a5424d2b4834e9a6cea56e0","tarball":"http://registry-npm.ywwl.com/spawn-please/download/spawn-please-2.0.2.tgz","fileCount":15,"unpackedSize":10169,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/JIje6XLsphndrJ/tROWIQgcRQGNvBtkBCmmHD5MvFwIgb4vlnUPYklo/md76HH+uxcyffEer9lyiP/7ern1PCQY="}],"size":4305,"noattachment":false,"key":"/spawn-please/-/spawn-please-2.0.2.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_2.0.2_1692541236140_0.7398236797658806"},"_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":1692541236348,"_cnpm_publish_time":1692541236348,"dist-tags":{"latest":"4.0.0"}}