{"_id":"subcomandante","_rev":"13-624190b6b6980787236564148140c1c3","name":"subcomandante","description":"run a command but wait on the parent","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"subcomandante","version":"1.0.0","description":"run a command but wait on the parent","main":"index.js","bin":{"subcom":"subcom"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/jbenet/node-subcomandante"},"keywords":["subcomandante","comandante","process","exit"],"author":{"name":"Juan Benet","email":"juan@benet.ai","url":"http://juan.benet.ai/"},"license":"MIT","bugs":{"url":"https://github.com/jbenet/node-subcomandante/issues"},"homepage":"https://github.com/jbenet/node-subcomandante","gitHead":"0605b3e01c8994b6d841e43706d672f16dde4b65","_id":"subcomandante@1.0.0","_shasum":"ccf5ceef7d8674b0dec966da66310807451856ff","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"jbenet","email":"juan@benet.ai"},"dist":{"shasum":"ccf5ceef7d8674b0dec966da66310807451856ff","tarball":"https://registry.npmjs.org/subcomandante/-/subcomandante-1.0.0.tgz","integrity":"sha512-gNynJdTKG67PddSxUzhz/LZQlXGC91GTOavauO5ZsnP3BHCQVxgI7W/I2K5MzSQ+xUsU0QAnKTl+OmoBBVkUsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE112r5eeOlQ8O/Z8Ek1n3qSS+Gb2p5lx/ajVXrRlIZ+AiAIXDExfuW/1vuc2QAOIZoVxxQRGLrFMbQcb00lSCYsqA=="}]},"maintainers":[{"name":"jbenet","email":"juan@benet.ai"}],"directories":{}},"1.0.1":{"name":"subcomandante","version":"1.0.1","description":"run a command but wait on the parent","main":"index.js","bin":{"subcom":"subcom"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/jbenet/node-subcomandante"},"keywords":["subcomandante","comandante","process","exit"],"author":{"name":"Juan Benet","email":"juan@benet.ai","url":"http://juan.benet.ai/"},"license":"MIT","bugs":{"url":"https://github.com/jbenet/node-subcomandante/issues"},"homepage":"https://github.com/jbenet/node-subcomandante","gitHead":"b4a5b8724dcfa3c324e0e635ec27ac9d7cf4144c","_id":"subcomandante@1.0.1","_shasum":"c7a552cf48c7dd4019d7c5321c1bf6d614cea26a","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"jbenet","email":"juan@benet.ai"},"dist":{"shasum":"c7a552cf48c7dd4019d7c5321c1bf6d614cea26a","tarball":"https://registry.npmjs.org/subcomandante/-/subcomandante-1.0.1.tgz","integrity":"sha512-WdHcaOqj+rX9+DRumNFya4vKOBt7kFain66Hw9ArfaMXZZIQBo1LebdpuiBxlspamT/tLf8pH9Ylt82LGocw3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWBNtu9Y09+l5bpdndbvLoV4n00h3wjcVl1lJfUpacGAiABd75U/BwFKVE9XzjhSyCM70GDeGxyqNbyJ6cwvIst8A=="}]},"maintainers":[{"name":"jbenet","email":"juan@benet.ai"}],"directories":{}},"1.0.2":{"name":"subcomandante","version":"1.0.2","description":"run a command but wait on the parent","main":"index.js","bin":{"subcom":"subcom"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/jbenet/node-subcomandante"},"keywords":["subcomandante","comandante","process","exit"],"author":{"name":"Juan Benet","email":"juan@benet.ai","url":"http://juan.benet.ai/"},"license":"MIT","bugs":{"url":"https://github.com/jbenet/node-subcomandante/issues"},"homepage":"https://github.com/jbenet/node-subcomandante","dependencies":{"comandante":"0.0.1","is-running":"^1.0.5"},"devDependencies":{},"gitHead":"0206483f624c4a195c23ad692826cfe86add3fa3","_id":"subcomandante@1.0.2","_shasum":"a81d321a26d9b417b1ee388dea6f488af9746113","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"jbenet","email":"juan@benet.ai"},"dist":{"shasum":"a81d321a26d9b417b1ee388dea6f488af9746113","tarball":"https://registry.npmjs.org/subcomandante/-/subcomandante-1.0.2.tgz","integrity":"sha512-rZoVb7vP/9Gf359lL4vZL5OzA9x2FgjwxooXKOH1dK2ZjnkT/5gzwq7TqrNEcEclS/3PIbErezENuNgq/jHspw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCB3/L4KvHW+xyU3PBdTJdCnsCG3R4pN1eC9U+hCMW75AIgZBemSgZ5gOCIA24rB5WW5HQslFDa56+OPfHZ2BJIGRA="}]},"maintainers":[{"name":"jbenet","email":"juan@benet.ai"}],"directories":{}},"1.0.3":{"name":"subcomandante","version":"1.0.3","description":"run a command but wait on the parent","main":"index.js","bin":{"subcom":"subcom"},"scripts":{"test":"test/test.js"},"repository":{"type":"git","url":"https://github.com/jbenet/node-subcomandante"},"keywords":["subcomandante","comandante","process","exit"],"author":{"name":"Juan Benet","email":"juan@benet.ai","url":"http://juan.benet.ai/"},"license":"MIT","bugs":{"url":"https://github.com/jbenet/node-subcomandante/issues"},"homepage":"https://github.com/jbenet/node-subcomandante","dependencies":{"comandante":"0.0.1","is-running":"^1.0.5"},"devDependencies":{"tap":"^1.3.2"},"gitHead":"d567062d58b981888d56031353013b1abe611823","_id":"subcomandante@1.0.3","_shasum":"6dbbd46f5a26e46e5594be3ebffeab3b233ff4d7","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"jbenet","email":"juan@benet.ai"},"dist":{"shasum":"6dbbd46f5a26e46e5594be3ebffeab3b233ff4d7","tarball":"https://registry.npmjs.org/subcomandante/-/subcomandante-1.0.3.tgz","integrity":"sha512-Ak6XL7qo+V+duaQslwFauwSNNkXFtW8TaWiaelEUoxbg9FnVprws2aljZ8k55zfDoztQ0309k76IVED6PRb4gw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyIN7OcAIGjT61RtXH2xOlk/eOD8MlUwJwjpkPBJpiBwIgWVFXeXoN1hKjc0RzTUAUtgIxZfAadwZ853DTUtizrgE="}]},"maintainers":[{"name":"jbenet","email":"juan@benet.ai"}],"directories":{}},"1.0.4":{"name":"subcomandante","version":"1.0.4","description":"run a command but wait on the parent","main":"index.js","bin":{"subcom":"subcom"},"scripts":{"test":"test/test.js"},"repository":{"type":"git","url":"git+https://github.com/jbenet/node-subcomandante.git"},"keywords":["subcomandante","comandante","process","exit"],"author":{"name":"Juan Benet","email":"juan@benet.ai","url":"http://juan.benet.ai/"},"license":"MIT","bugs":{"url":"https://github.com/jbenet/node-subcomandante/issues"},"homepage":"https://github.com/jbenet/node-subcomandante","dependencies":{"comandante":"0.0.1","is-running":"^1.0.5"},"devDependencies":{"tap":"^1.3.2"},"gitHead":"482e30093231b80d1e91bfb94f46890a418e6cb2","_id":"subcomandante@1.0.4","_shasum":"19f6ef7a9253005e87de0ec498bfa1f4f64a466a","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"jbenet","email":"juan@benet.ai"},"dist":{"shasum":"19f6ef7a9253005e87de0ec498bfa1f4f64a466a","tarball":"https://registry.npmjs.org/subcomandante/-/subcomandante-1.0.4.tgz","integrity":"sha512-Y0kozKCgMYeWLnBfoEDkeOSoq1koj9PzxdDfZzozFdc6WOP5JtEZqkqNvaE2jK9Ksvc/m6IC3sfri7aBV/uF+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtkXJIBuqKpWtErCA52maWw48axTgHwrQ720CK+M1SaQIhANqI2i0s4iQW5lUcEPtYZ9dp9kWUt8jrtaeLzZ0sbiT6"}]},"maintainers":[{"name":"jbenet","email":"juan@benet.ai"}],"directories":{}},"1.0.5":{"name":"subcomandante","version":"1.0.5","description":"run a command but wait on the parent","main":"index.js","bin":{"subcom":"subcom"},"scripts":{"test":"test/test.js"},"repository":{"type":"git","url":"git+https://github.com/jbenet/node-subcomandante.git"},"keywords":["subcomandante","comandante","process","exit"],"author":{"name":"Juan Benet","email":"juan@benet.ai","url":"http://juan.benet.ai/"},"license":"MIT","bugs":{"url":"https://github.com/jbenet/node-subcomandante/issues"},"homepage":"https://github.com/jbenet/node-subcomandante","dependencies":{"comandante":"0.0.1","duplexer":"^0.1.1","is-running":"^1.0.5"},"devDependencies":{"tap":"^1.3.2"},"gitHead":"09e0eaebf4051cbfaf2ec0d3682ec3f02b77ff97","_id":"subcomandante@1.0.5","_shasum":"2682f8fc531b8a4faedf15a7578964a7d6260959","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"jbenet","email":"juan@benet.ai"},"dist":{"shasum":"2682f8fc531b8a4faedf15a7578964a7d6260959","tarball":"https://registry.npmjs.org/subcomandante/-/subcomandante-1.0.5.tgz","integrity":"sha512-5em6/w4cmlTa8sDrrz/L3BIkJaL4OTyaWq+hExkBve459Ppmqw6q6gVFFzDQFaJUwVkOrHXqnwkF7i+SVaF04A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOD95cPDFVnhO5Jee03l34chlKsmAi4QcmUl5TuulfzQIgYSYWrocfmHfJoC5Z+6zjQLrK7vejPYXkg00A2V8SbL8="}]},"maintainers":[{"name":"jbenet","email":"juan@benet.ai"}],"directories":{}},"1.2.0":{"name":"subcomandante","version":"1.2.0","description":"run a command but wait on the parent","main":"index.js","bin":{"subcom":"subcom"},"scripts":{"test":"test/test.js"},"repository":{"type":"git","url":"git+https://github.com/jbenet/node-subcomandante.git"},"keywords":["subcomandante","comandante","process","exit"],"author":{"name":"Juan Benet","email":"juan@benet.ai","url":"http://juan.benet.ai/"},"license":"MIT","bugs":{"url":"https://github.com/jbenet/node-subcomandante/issues"},"homepage":"https://github.com/jbenet/node-subcomandante","dependencies":{"comandante":"0.0.1","duplexer":"^0.1.1","end-of-stream":"^1.4.1","is-running":"^1.0.5"},"devDependencies":{"tap":"^1.3.2"},"gitHead":"72f1fd5db9def041044352d0ad7b8be02eee1bd5","_id":"subcomandante@1.2.0","_npmVersion":"5.6.0","_nodeVersion":"9.9.0","_npmUser":{"name":"tperson","email":"travis.person@gmail.com"},"dist":{"integrity":"sha512-EJxf6k6f+UdF8UsLORpA3XlA/BRataRBN7DNF6RLj0cIGhxvzEd3WAaW9tPwVqZ7GMhZ+Tp9lgGtrAXcGOAPmw==","shasum":"3b40593e45428ed11da7f8ef3acf6eff7df3550e","tarball":"https://registry.npmjs.org/subcomandante/-/subcomandante-1.2.0.tgz","fileCount":11,"unpackedSize":45550,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6LOKCRA9TVsSAnZWagAA87oP/R+A6r7yL2EsTyYdivaJ\n6PMHyYR12GFoKF82Xqv7m8yvTHbXI3fjHsPPzXKZsUt4r28qsXaahohCcPxt\neMYR9A3U5E7PPEfRHt88hp9HVTzm+TVuyp+xmnhatndR9hyb8hkiq04ORM0m\nxJFyZ+PDNAwj99DQ3NVOc39cuwTjhXnRVKaBz6DE4esjfsVZIzTY1eruh0GE\nizm4yu3ppXlsGa0RrpJrOqbHBzXNVZTOjZXlLunsAlgJhEdvK54Ki2Bb7vfe\nwT+SqrmzQHMdfgqgbo+m8Y9fT0zGkdxKsZQ0SpTopvn/+ppXMffHxQZezYJf\nv5SCAaP5NrTnIlAbwZNenlezjWr48ti/7P8LuYNohfmAiJykNPwcy0IbJMPi\nxKQnBqx2kR2rCmTL2H2llXmuNUghaIono1lsULbH/FzMiIawRyePJvA03C0J\nmtwWWPuN6oy9VCnL4ORfy/Sj682HEzB8gAWfZZAdvRUOc2YyNogEdgS7VREg\nAn3gMT2b8QXJhjl+BBUhz36+s8EnapQ25fm73IYP5I/KfPFRUAgOAeTV8orU\ncSxFES3xDLrFnZiMKaxf51xyt4YyUj7UskA8Om9vikh5m1WOjcomsu4U0m7O\nGxxSgVBrx7zfGZ4ZkoyS0b/5ZtfVTCUZfqMijWBQ6dz2AOskiglUY+wXukm1\nJR9m\r\n=AO/F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB1yxyOFTW9If3YQGyVytOhT9D37guJOz46OxhHlIV5JAiEAsKe3m2ML+mI13JyazZttSGkJqGJdc04bWHiqira2lAU="}]},"maintainers":[{"email":"mail@daviddias.me","name":"daviddias"},{"email":"juan2@benet.ai","name":"jbenet"},{"email":"travis.person@gmail.com","name":"tperson"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/subcomandante_1.2.0_1525199753390_0.3079545609219847"},"_hasShrinkwrap":false}},"readme":"# node-subcomandante\n\nMorir fue lo unico que el subcomandante hizo sin su comandante.\n\nThis module is a companion to [comandante](https://github.com/substack/comandante). It is meant to solve the problem of child processes which must die along with their parents in node, which often leaves children hanging.\n\n## Usage\n\n`subcomandante` works just like `comandante`:\n\n```js\n// comandante\nvar run = require('comandante')\nrun(['tail', '-f', '/dev/null']) // will wait forever.\nprocess.exit(0)\n\n// subcomandante\nvar run = require('subcomandante')\nrun(['tail', '-f', '/dev/null']) // will exit with parent.\nprocess.exit(0)\n```\n\n#### `opts.waitPid`\n\nPass in a `pid` with `opts.waitPid` to wait on that process, instead of the current process (`process.pid`).\n\n```js\nrun(['nc', '-l', '1234'], {waitPid: 1919})\n```\n\n## `subcom` binary\n\n```\n> subcom\nusage: subcom <pid> <cmd>...\nrun <cmd> until <pid> exits.\n```\n\nThe `subcom` binary is very simple-- it runs a child process until process with given `<pid>` exits. It forwards all io, and exits with the same error code as the child. It will also employ brute strength (`kill -9`) if the child refuses to exit gracefully.\n","maintainers":[{"email":"mail@daviddias.me","name":"daviddias"},{"email":"juan2@benet.ai","name":"jbenet"},{"email":"travis.person@gmail.com","name":"tperson"}],"time":{"modified":"2022-06-27T01:45:46.600Z","created":"2015-08-09T06:29:29.596Z","1.0.0":"2015-08-09T06:29:29.596Z","1.0.1":"2015-08-09T06:40:14.220Z","1.0.2":"2015-08-11T13:12:33.101Z","1.0.3":"2015-08-11T15:26:43.210Z","1.0.4":"2015-10-12T09:11:20.437Z","1.0.5":"2015-10-19T18:02:45.173Z","1.2.0":"2018-05-01T18:35:53.479Z"},"homepage":"https://github.com/jbenet/node-subcomandante","keywords":["subcomandante","comandante","process","exit"],"repository":{"type":"git","url":"git+https://github.com/jbenet/node-subcomandante.git"},"author":{"name":"Juan Benet","email":"juan@benet.ai","url":"http://juan.benet.ai/"},"bugs":{"url":"https://github.com/jbenet/node-subcomandante/issues"},"license":"MIT","readmeFilename":"README.md"}