{"name":"spawn-command-with-kill","version":"1.0.0","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\""},"files":["dist"],"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.1.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":"26768cdc94c8532e0dd493ddd90edd6422733101","_id":"spawn-command-with-kill@1.0.0","_shasum":"803ad79f2f56e44dd926183768aac2faec7d0ce6","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.5.0","_npmUser":{"name":"kentcdodds","email":"kent@doddsfamily.us"},"dist":{"shasum":"803ad79f2f56e44dd926183768aac2faec7d0ce6","tarball":"http://registry-npm.ywwl.com/spawn-command-with-kill/download/spawn-command-with-kill-1.0.0.tgz","integrity":"sha512-pAdtEiw7/cwfnBC49rGrhMSl5tk+ifgahIXjHdPKsybEs531wrNhiEZA6j1rujm773x21j4R0r4ULMNJDuD/lw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAHkE4VKgodUU4OOqRu+vpH6frSmqDEZc6VUct19iGjAIhAIC24Vi9BU2Y0dY5LsH+cAhP5RoRkXvnjavmUmT6xIOQ"}],"size":4131,"noattachment":false,"key":"/spawn-command-with-kill/-/spawn-command-with-kill-1.0.0.tgz"},"maintainers":[{"name":"kentcdodds","email":"kent@doddsfamily.us"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/spawn-command-with-kill-1.0.0.tgz_1472885722940_0.46388892107643187"},"directories":{},"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":1472885725392,"_cnpm_publish_time":1472885725392,"dist-tags":{"latest":"1.0.2"}}