{"name":"spawn-command-with-kill","version":"1.0.1","description":"Adds cross-platform `kill` function to spawn-command processes","main":"dist/index.js","scripts":{"start":"package-scripts","test":"package-scripts test","commitmsg":"opt --in commit-msg --exec \"validate-commit-msg\"","precommit":"opt --in pre-commit --exec \"npm start validate\""},"keywords":[],"author":{"name":"Kent C. Dodds","email":"kent@doddsfamily.us","url":"http://kentcdodds.com/"},"license":"MIT","dependencies":{"spawn-command":"^0.0.2-1","ps-tree":"1.2.0"},"devDependencies":{"all-contributors-cli":"^3.0.6","babel-cli":"^6.14.0","babel-jest":"^15.0.0","babel-polyfill":"^6.13.0","babel-preset-es2015":"^6.14.0","babel-preset-stage-2":"^6.13.0","babel-register":"^6.14.0","codecov":"^1.0.1","commitizen":"^2.8.6","cz-conventional-changelog":"^1.2.0","eslint":"^3.4.0","eslint-config-kentcdodds":"^10.1.0","husky":"^0.11.7","jest-cli":"15.1.1","opt-cli":"^1.5.1","p-s":"^2.4.3","rimraf":"^2.5.4","semantic-release":"^6.2.1","validate-commit-msg":"^2.8.0"},"eslintConfig":{"extends":["kentcdodds","kentcdodds/jest"]},"jest":{"cacheDirectory":"./node_modules/.cache","testEnvironment":"node","coverageThreshold":{"global":{"branches":100,"functions":100,"lines":100,"statements":100}}},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"repository":{"type":"git","url":"git+https://github.com/kentcdodds/spawn-command-with-kill.git"},"bugs":{"url":"https://github.com/kentcdodds/spawn-command-with-kill/issues"},"homepage":"https://github.com/kentcdodds/spawn-command-with-kill#readme","gitHead":"1d6d679dd2c38b515e154b3f01be28b5fd0b0418","_id":"spawn-command-with-kill@1.0.1","_shasum":"380c2c84ca1b7fc22b950d3248f78cdc631c9809","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.15.0","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"shasum":"380c2c84ca1b7fc22b950d3248f78cdc631c9809","tarball":"http://registry-npm.ywwl.com/spawn-command-with-kill/download/spawn-command-with-kill-1.0.1.tgz","integrity":"sha512-HtdZSgDYds6WC6iQkQe4EjoXfpEvXv3xE7UAGyGelsKnVCSWyuxUVzV7aKLDxAmmLYedogxuzWRHA/YCg89yqA==","fileCount":7,"unpackedSize":10649,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcABxaCRA9TVsSAnZWagAAzwUP/3oa1SmoFQvzahYDcdrc\nvgLRAJ/ep89On88wDlla2XuMNR/dlQowB86E5WlSGpLmmh9PbREMnCC8vDcH\nnORAmvb9LcpPOE6sDTCO3BqYX6OilRzWOfZpUsOMWoeNrYInfgnWQmtF+fac\nYqK4eLNZ8149mClWzmSKPeS3wB1YQhME/wPhpAzA69N0+H40Fs6Wjn+yiK+E\n6+7szmhEYMxiCbEcSxlh3gWQj4wCqLTgERVgTnsHjqfqRJ71Qpwt2heSqbei\nMhtirl8ZbIbpINLsD+GeyCYptAAh6+mHwRFfhufC5QQvZJIV1xDiJhyQD4bk\nNDQnriuSqo9IRTpVlhEez5BCBqbFZPNz3Bd/oMkoywI+dshlaHHDmJaJG3LA\nn/NPUZlm2oxMdGl/okG8L4OiJyh7m2dFopIlnXdctrmXWRcSwgN56ntmJxTf\nC8JXXk9RDpXQ3lSpKPGOXg36pS21T7MpQf5HefO8XZdasA3bCz23XrlGfasb\naia0oykDpfOMq8zxW8kVHCulQFaNMvCe6bZdG7bWrXVBSoThbAYpKSRUN7rC\n3yG2nH5rjEivCrO0XwxJwCQ65XmZIuPHJ8gUl/MKsmvKJmZItj9T/dd9TV/D\ng15OCoMMaoZGqJPXKclby6kcKLzdFe26hgzMvHhnrY24k5Tnt8+VsuH/O4mT\nVQ5M\r\n=cCgq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCx7Ocd/MmJGRgSzEVxlQspG9GXul5m/9+x5QfR4Wx5hgIhALlkN3gsLBVEKzuznh2TVcbTsqXRPOfLCBhPKe8hWbw3"}],"size":4128,"noattachment":false,"key":"/spawn-command-with-kill/-/spawn-command-with-kill-1.0.1.tgz"},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spawn-command-with-kill_1.0.1_1543511130365_0.8119218650590492"},"_hasShrinkwrap":false,"readme":"# spawn-command-with-kill\n\nAdds cross-platform `kill` function to spawn-command processes\n\n[![Build Status][build-badge]][build]\n[![Code Coverage][coverage-badge]][coverage]\n[![Dependencies][dependencyci-badge]][dependencyci]\n[![version][version-badge]][package]\n[![downloads][downloads-badge]][npm-stat]\n[![MIT License][license-badge]][LICENSE]\n\n[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors)\n[![PRs Welcome][prs-badge]][prs]\n[![Donate][donate-badge]][donate]\n[![Code of Conduct][coc-badge]][coc]\n[![Roadmap][roadmap-badge]][roadmap]\n[![Examples][examples-badge]][examples]\n\n[![Watch on GitHub][github-watch-badge]][github-watch]\n[![Star on GitHub][github-star-badge]][github-star]\n[![Tweet][twitter-badge]][twitter]\n\n## The problem\n\n[`spawn-command`](https://npmjs.com/package/spawn-command) is a cross platform solution to node's `spawn`. However, it\ndoesn't provide a mechanism for \"killing\" the process after it's begun (in a cross platform manner).\n\n## This solution\n\nThis solution provides a `kill` function on the `child` returned from `spawn` which will kill the corresponding process\nwhen invoked. It does not work with `spawn.sync` as the process will be finished before your code could run anyway.\n\n## Installation\n\nThis module is distributed via [npm][npm] which is bundled with [node][node] and should\nbe installed as one of your project's `dependencies`:\n\n```\nnpm install --save spawn-command-with-kill\n```\n\n## Usage\n\n```javascript\nconst spawn = require('spawn-command-with-kill')\nconst child = spawn('webpack')\nchild.kill() // <-- that's the ✨ magic ✨ extra function\n```\n\n## Inspiration\n\nBig thank you goes to [@mysticatea](https://github.com/mysticatea) for his original work on\n[npm-run-all](https://github.com/mysticatea/npm-run-all) from which\n[this project was derived](https://github.com/mysticatea/npm-run-all/issues/59).\n\n## Other Solutions\n\nThere's a version of this module for\n[`cross-spawn`](https://github.com/IndigoUnited/node-cross-spawn) called\n[`cross-spawn-with-kill`](https://github.com/kentcdodds/cross-spawn-with-kill).\n\n## Contributors\n\nThanks goes to these people ([emoji key][emojis]):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n| [<img src=\"https://avatars.githubusercontent.com/u/1500684?v=3\" width=\"100px;\"/><br /><sub>Kent C. Dodds</sub>](https://kentcdodds.com)<br />[💻](https://github.com/kentcdodds/spawn-command-with-kill/commits?author=kentcdodds) [📖](https://github.com/kentcdodds/spawn-command-with-kill/commits?author=kentcdodds) 🚇 [⚠️](https://github.com/kentcdodds/spawn-command-with-kill/commits?author=kentcdodds) | [<img src=\"https://avatars.githubusercontent.com/u/1937871?v=3\" width=\"100px;\"/><br /><sub>Toru Nagashima</sub>](https://plus.google.com/u/0/+ToruNagashimax/)<br />[💻](https://github.com/kentcdodds/spawn-command-with-kill/commits?author=mysticatea) |\n| :---: | :---: |\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors][all-contributors] specification. Contributions of any kind welcome!\n\n## LICENSE\n\nMIT\n\n[npm]: https://www.npmjs.com/\n[node]: https://nodejs.org\n[build-badge]: https://img.shields.io/travis/kentcdodds/spawn-command-with-kill.svg?style=flat-square\n[build]: https://travis-ci.org/kentcdodds/spawn-command-with-kill\n[coverage-badge]: https://img.shields.io/codecov/c/github/kentcdodds/spawn-command-with-kill.svg?style=flat-square\n[coverage]: https://codecov.io/github/kentcdodds/spawn-command-with-kill\n[dependencyci-badge]: https://dependencyci.com/github/kentcdodds/spawn-command-with-kill/badge?style=flat-square\n[dependencyci]: https://dependencyci.com/github/kentcdodds/spawn-command-with-kill\n[version-badge]: https://img.shields.io/npm/v/spawn-command-with-kill.svg?style=flat-square\n[package]: https://www.npmjs.com/package/spawn-command-with-kill\n[downloads-badge]: https://img.shields.io/npm/dm/spawn-command-with-kill.svg?style=flat-square\n[npm-stat]: http://npm-stat.com/charts.html?package=spawn-command-with-kill&from=2016-04-01\n[license-badge]: https://img.shields.io/npm/l/spawn-command-with-kill.svg?style=flat-square\n[license]: https://github.com/kentcdodds/spawn-command-with-kill/blob/master/other/LICENSE\n[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: http://makeapullrequest.com\n[donate-badge]: https://img.shields.io/badge/$-support-green.svg?style=flat-square\n[donate]: http://kcd.im/donate\n[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square\n[coc]: https://github.com/kentcdodds/spawn-command-with-kill/blob/master/other/CODE_OF_CONDUCT.md\n[roadmap-badge]: https://img.shields.io/badge/%F0%9F%93%94-roadmap-CD9523.svg?style=flat-square\n[roadmap]: https://github.com/kentcdodds/spawn-command-with-kill/blob/master/other/ROADMAP.md\n[examples-badge]: https://img.shields.io/badge/%F0%9F%92%A1-examples-8C8E93.svg?style=flat-square\n[examples]: https://github.com/kentcdodds/spawn-command-with-kill/blob/master/other/EXAMPLES.md\n[github-watch-badge]: https://img.shields.io/github/watchers/kentcdodds/spawn-command-with-kill.svg?style=social\n[github-watch]: https://github.com/kentcdodds/spawn-command-with-kill/watchers\n[github-star-badge]: https://img.shields.io/github/stars/kentcdodds/spawn-command-with-kill.svg?style=social\n[github-star]: https://github.com/kentcdodds/spawn-command-with-kill/stargazers\n[twitter]: https://twitter.com/intent/tweet?text=Check%20out%20spawn-command-with-kill!%20https://github.com/kentcdodds/spawn-command-with-kill%20%F0%9F%91%8D\n[twitter-badge]: https://img.shields.io/twitter/url/https/github.com/kentcdodds/spawn-command-with-kill.svg?style=social\n[emojis]: https://github.com/kentcdodds/all-contributors#emoji-key\n[all-contributors]: https://github.com/kentcdodds/all-contributors\n","publish_time":1543511130536,"_cnpm_publish_time":1543511130536,"dist-tags":{"latest":"1.0.2"}}