{"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,"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","publish_time":1731961453114,"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_cnpm_publish_time":1731961453114,"dist-tags":{"latest":"3.0.1"}}