{"_id":"spawndamnit","_rev":"1179841","name":"spawndamnit","description":"Take care of your `spawn()`","dist-tags":{"latest":"3.0.1"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"time":{"modified":"2024-12-27T04:15:24.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":{"donavon":true,"dawsonbotsford":true,"suchipi":true,"ajaynarainmathur":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":{"integrity":"sha512-MmnduQUuHCoFckZoWnXsTg7JaiLBJrKFj9UI2MbRPGaJeVpsLcVBu6P/IGZovziM/YBsellCmsprgNA+w0CzVg==","shasum":"44410235d3dc4e21f8e4f740ae3266e4486c2aed","tarball":"http://registry-npm.ywwl.com/spawndamnit/download/spawndamnit-3.0.1.tgz","fileCount":6,"unpackedSize":4478,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBko4vyMXWW8q5jm1KVAQgGN8FiyKT+qc63DIN2AtJS4AiEA8mNGQAlHY+oTkWDwQGLX5NvSRiI7uz6+XzNokHGMFQo="}],"size":2208,"noattachment":false,"key":"/spawndamnit/-/spawndamnit-3.0.1.tgz"},"_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/spawndamnit_3.0.1_1731961452844_0.4927386689994264"},"_hasShrinkwrap":false,"publish_time":1731961453114,"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_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":{"integrity":"sha512-j4JKEcncSjFlqIwU5L/rp2N5SIPsdxaRsIv678+TZxZ0SRDJTm8JrxJMjE/XuiEZNEir3S8l0Fa3Ke339WI4qA==","shasum":"9f762ac5c3476abb994b42ad592b5ad22bb4b0ad","tarball":"http://registry-npm.ywwl.com/spawndamnit/download/spawndamnit-2.0.0.tgz","fileCount":6,"unpackedSize":4457,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG2bC7JTsG97pYHFJ0U3zALfgDLE49FalZKehaJUOgDdAiAXGDYuHBMuNh14JmHV0r0KsOXlcmZCOFeEGj4KFiTemA=="}],"size":2211,"noattachment":false,"key":"/spawndamnit/-/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","tarball":"http://registry-npm.ywwl.com/spawndamnit/download/spawndamnit-1.0.0.tgz","integrity":"sha512-elbRJ32UPPbHpxvrTXH9FYGepzhBsgNK0PAB5wEezqq6NtLTvIXHOBdn1zV06kQ+7fxWXPZJI8rpex3CBeRYVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3AY01aDIF9xcyCujiP+rw81p8T8SqMiNABAgyFs6VrQIgbrbUQRbtfxO2h/RBKOeki7mQQeWk51cp+w0ITYNqBsg="}],"size":3324,"noattachment":false,"key":"/spawndamnit/-/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,"_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"}