{"_id":"spawndamnit","_rev":"4180666","name":"spawndamnit","description":"Take care of your `spawn()`","dist-tags":{"latest":"3.0.1"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"time":{"modified":"2026-03-01T21:48:51.000Z","created":"2018-01-19T02:35:37.536Z","3.0.1":"2024-11-18T20:24:13.114Z","2.0.0":"2018-04-11T21:54:16.714Z","1.0.0":"2018-01-19T02:35:37.536Z"},"users":{"dawsonbotsford":true,"ajaynarainmathur":true,"donavon":true,"suchipi":true},"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"repository":{"type":"git","url":"git+https://github.com/thejameskyle/spawndamnit.git"},"versions":{"3.0.1":{"name":"spawndamnit","version":"3.0.1","main":"index.js","description":"Take care of your `spawn()`","author":{"name":"James Kyle","email":"me@thejameskyle.com"},"repository":{"type":"git","url":"git+https://github.com/thejameskyle/spawndamnit.git"},"license":"SEE LICENSE IN LICENSE","keywords":["spawn","child","process","promise","async","cross-spawn"],"scripts":{"flow":"flow","test":"ava"},"dependencies":{"cross-spawn":"^7.0.5","signal-exit":"^4.0.1"},"devDependencies":{"ava":"^4.3.3","fixturez":"^1.1.0","flow-bin":"^0.63.1"},"_id":"spawndamnit@3.0.1","gitHead":"da9382aa00d022e475b2bf152e993551d47e642d","bugs":{"url":"https://github.com/thejameskyle/spawndamnit/issues"},"homepage":"https://github.com/thejameskyle/spawndamnit#readme","_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"shasum":"44410235d3dc4e21f8e4f740ae3266e4486c2aed","size":2208,"noattachment":false,"key":"/spawndamnit/-/spawndamnit-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/spawndamnit/download/spawndamnit-3.0.1.tgz"},"_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"directories":{},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spawndamnit_3.0.1_1731961452844_0.4927386689994264"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-11-18T20:24:13.114Z","publish_time":1731961453114,"_source_registry_name":"default","_cnpm_publish_time":1731961453114},"2.0.0":{"name":"spawndamnit","version":"2.0.0","main":"index.js","description":"Take care of your `spawn()`","author":{"name":"James Kyle","email":"me@thejameskyle.com"},"repository":{"type":"git","url":"git+https://github.com/thejameskyle/spawndamnit.git"},"license":"MIT","keywords":["spawn","child","process","promise","async","cross-spawn"],"files":["index.js","promise.js","promise.js.flow","error.js"],"scripts":{"flow":"flow","test":"ava"},"dependencies":{"cross-spawn":"^5.1.0","signal-exit":"^3.0.2"},"devDependencies":{"ava":"^0.24.0","fixturez":"^1.1.0","flow-bin":"^0.63.1"},"gitHead":"916fa485e57a3b67c1608a92d379670f1b4a60c6","bugs":{"url":"https://github.com/thejameskyle/spawndamnit/issues"},"homepage":"https://github.com/thejameskyle/spawndamnit#readme","_id":"spawndamnit@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"9f762ac5c3476abb994b42ad592b5ad22bb4b0ad","size":2211,"noattachment":false,"key":"/spawndamnit/-/spawndamnit-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/spawndamnit/download/spawndamnit-2.0.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spawndamnit_2.0.0_1523483656631_0.03994171215369269"},"_hasShrinkwrap":false,"publish_time":1523483656714,"_cnpm_publish_time":1523483656714},"1.0.0":{"name":"spawndamnit","version":"1.0.0","main":"index.js","description":"Take care of your `spawn()`","author":{"name":"James Kyle","email":"me@thejameskyle.com"},"repository":{"type":"git","url":"git+https://github.com/thejameskyle/spawndamnit.git"},"license":"MIT","keywords":["spawn","child","process","promise","async","cross-spawn"],"files":["index.js","promise.js","promise.js.flow","error.js"],"scripts":{"flow":"flow","test":"ava"},"dependencies":{"cross-spawn":"^5.1.0","signal-exit":"^3.0.2"},"devDependencies":{"ava":"^0.24.0","fixturez":"^1.1.0","flow-bin":"^0.63.1"},"gitHead":"71b1200f63323f6309c19888a5864b5d73ab669c","bugs":{"url":"https://github.com/thejameskyle/spawndamnit/issues"},"homepage":"https://github.com/thejameskyle/spawndamnit#readme","_id":"spawndamnit@1.0.0","_shasum":"b5d4a1a73016dbcca8f8b1e283eee76a649161b8","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"b5d4a1a73016dbcca8f8b1e283eee76a649161b8","size":3324,"noattachment":false,"key":"/spawndamnit/-/spawndamnit-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/spawndamnit/download/spawndamnit-1.0.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spawndamnit-1.0.0.tgz_1516329337456_0.7080472842790186"},"directories":{},"publish_time":1516329337536,"_hasShrinkwrap":false,"_cnpm_publish_time":1516329337536}},"readme":"# spawndamnit\n\n> Take care of your `spawn()`\n\n## Features\n\n- Returns an `await`-able promise\n- Collects `stdout` and `stderr` buffers\n- Emits events \"stdout\" and \"stderr\"\n- Automatically kills all spawn processes when parent process dies\n\n## Installation\n\n```sh\nyarn add spawndamnit\n```\n\n## Usage\n\n**Basic:**\n\n```js\nconst spawn = require('spawndamnit');\n\nasync function main() {\n  let child = spawn('npm', ['star', 'spawndamnit']);\n\n  child.on('stdout', data => console.log(data.toString()));\n  child.on('stderr', data => console.error(data.toString()));\n\n  let { code, stdout, stderr } = await child;\n\n  console.log(code === 0 ? 'success' : 'error');\n}\n```\n","_attachments":{},"homepage":"https://github.com/thejameskyle/spawndamnit#readme","bugs":{"url":"https://github.com/thejameskyle/spawndamnit/issues"},"license":"SEE LICENSE IN LICENSE"}