{"name":"spawn-please","version":"3.0.0","description":"Easy and small child_process.spawn","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"},"main":"./src/index.js","types":"./types/index.d.ts","keywords":["promise","promisified","child_process","child process","exec","spawn","stdin","stdout","stderr"],"scripts":{"build":"tsc","lint":"eslint .","lintfix":"eslint --fix .","test":"mocha src/test"},"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"},"gitHead":"9a650fcde61674705c3453090a0a26ae7e13f256","bugs":{"url":"https://github.com/raineorshine/spawn-please/issues"},"homepage":"https://github.com/raineorshine/spawn-please#readme","_id":"spawn-please@3.0.0","_nodeVersion":"16.15.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-XFHEGgEG9R/MCypDDQVWoSSQoGAz5LFYcGoFpdYvnqgYDumHvapPDj54C5Xv7tqTkzEC17AY7Iz90KgrDfj7Gg==","shasum":"b84fd860ce086dbe5f56de5688117e790342bfe7","tarball":"http://registry-npm.ywwl.com/spawn-please/download/spawn-please-3.0.0.tgz","fileCount":15,"unpackedSize":10288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVRQjM+tjAsW2+wEzIBaVoZyAAysw1YeE3wUU9cs3Y2AIgfHQMofMpJa+ePHYpVaq+XkTZXxqSBaYdy2ZvO8p45+0="}],"size":4277,"noattachment":false,"key":"/spawn-please/-/spawn-please-3.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_3.0.0_1694960259573_0.35788164239994025"},"_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":1694960259743,"_cnpm_publish_time":1694960259743,"dist-tags":{"latest":"4.0.0"}}