{"_id":"duplex-child-process","_rev":"3290911","name":"duplex-child-process","description":"Spawn a child process as a duplex stream","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"dougwilson","email":""},{"name":"jeromew","email":""},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"time":{"modified":"2024-05-23T06:51:37.000Z","created":"2013-10-13T07:24:14.146Z","1.0.1":"2020-06-10T15:33:54.671Z","1.0.0":"2018-05-31T16:59:09.716Z","0.0.5":"2014-08-20T13:58:30.617Z","0.0.4":"2014-07-14T19:04:03.368Z","0.0.3":"2014-05-06T23:50:07.657Z","0.0.2":"2013-10-22T07:59:32.937Z","0.0.1":"2013-10-13T07:24:14.146Z"},"users":{},"author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"repository":{"type":"git","url":"git+https://github.com/stream-utils/duplex-child-process.git"},"versions":{"1.0.1":{"name":"duplex-child-process","description":"Spawn a child process as a duplex stream","version":"1.0.1","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/stream-utils/duplex-child-process.git"},"bugs":{"url":"https://github.com/stream-utils/duplex-child-process/issues"},"devDependencies":{"mocha":"*","should":"*","raw-body":"*","dev-null":"*","stream-stream":"*"},"scripts":{"test":"make test;"},"gitHead":"c270e57f78b739297c308cb598f5a0a772acb080","homepage":"https://github.com/stream-utils/duplex-child-process#readme","_id":"duplex-child-process@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"jeromew","email":"jerome.wagner@m4x.org"},"maintainers":[{"name":"dougwilson","email":""},{"name":"jeromew","email":""},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"d3868754b108726be9c665d810b989e87ae7833e","size":3338,"noattachment":false,"key":"/duplex-child-process/-/duplex-child-process-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/duplex-child-process/download/duplex-child-process-1.0.1.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/duplex-child-process_1.0.1_1591803234553_0.2991354386285381"},"_hasShrinkwrap":false,"publish_time":1591803234671,"_cnpm_publish_time":1591803234671,"_cnpmcore_publish_time":"2021-12-15T11:09:58.759Z"},"1.0.0":{"name":"duplex-child-process","description":"Spawn a child process as a duplex stream","version":"1.0.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/stream-utils/duplex-child-process.git"},"bugs":{"url":"https://github.com/stream-utils/duplex-child-process/issues"},"devDependencies":{"mocha":"*","should":"*","raw-body":"*","dev-null":"*","stream-stream":"*"},"scripts":{"test":"make test;"},"gitHead":"0cb84e861a86d3bc885f6d6b026a42a95e85ecf8","homepage":"https://github.com/stream-utils/duplex-child-process#readme","_id":"duplex-child-process@1.0.0","_shasum":"4a94974286fbc7840d0853d2b3fe590a9db46147","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"jeromew","email":"jerome.wagner@m4x.org"},"maintainers":[{"name":"dougwilson","email":""},{"name":"jeromew","email":""},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"4a94974286fbc7840d0853d2b3fe590a9db46147","size":3345,"noattachment":false,"key":"/duplex-child-process/-/duplex-child-process-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/duplex-child-process/download/duplex-child-process-1.0.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/duplex-child-process_1.0.0_1527785949652_0.08285325405212518"},"_hasShrinkwrap":false,"publish_time":1527785949716,"_cnpm_publish_time":1527785949716,"_cnpmcore_publish_time":"2021-12-15T11:09:58.962Z"},"0.0.5":{"name":"duplex-child-process","description":"Spawn a child process as a duplex stream","version":"0.0.5","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/stream-utils/duplex-child-process.git"},"bugs":{"url":"https://github.com/stream-utils/duplex-child-process/issues"},"devDependencies":{"mocha":"*","should":"*","raw-body":"*","dev-null":"*","stream-stream":"*"},"scripts":{"test":"make test;"},"homepage":"https://github.com/stream-utils/duplex-child-process","_id":"duplex-child-process@0.0.5","dist":{"shasum":"1c2462b8ec8fd01e432836ebbd592bcdffbb65e9","size":3307,"noattachment":false,"key":"/duplex-child-process/-/duplex-child-process-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/duplex-child-process/download/duplex-child-process-0.0.5.tgz"},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"jeromew","email":"jerome.wagner@m4x.org"},"maintainers":[{"name":"dougwilson","email":""},{"name":"jeromew","email":""},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"directories":{},"publish_time":1408543110617,"_hasShrinkwrap":false,"_cnpm_publish_time":1408543110617,"_cnpmcore_publish_time":"2021-12-15T11:09:59.173Z"},"0.0.4":{"name":"duplex-child-process","description":"Spawn a child process as a duplex stream","version":"0.0.4","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/stream-utils/duplex-child-process.git"},"bugs":{"url":"https://github.com/stream-utils/duplex-child-process/issues"},"devDependencies":{"mocha":"*","should":"*","stream-to":"*","dev-null":"*","stream-stream":"*"},"scripts":{"test":"make test;"},"homepage":"https://github.com/stream-utils/duplex-child-process","_id":"duplex-child-process@0.0.4","dist":{"shasum":"01d8db80c1cedf305f571be6febb1cc65d67d36a","size":3203,"noattachment":false,"key":"/duplex-child-process/-/duplex-child-process-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/duplex-child-process/download/duplex-child-process-0.0.4.tgz"},"_from":"./","_npmVersion":"1.3.15","_npmUser":{"name":"jeromew","email":"jerome.wagner@m4x.org"},"maintainers":[{"name":"dougwilson","email":""},{"name":"jeromew","email":""},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"directories":{},"publish_time":1405364643368,"_hasShrinkwrap":false,"_cnpm_publish_time":1405364643368,"_cnpmcore_publish_time":"2021-12-15T11:09:59.370Z"},"0.0.3":{"name":"duplex-child-process","description":"Spawn a child process as a duplex stream","version":"0.0.3","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/stream-utils/duplex-child-process.git"},"bugs":{"url":"https://github.com/stream-utils/duplex-child-process/issues"},"devDependencies":{"mocha":"*","should":"*","stream-to":"*"},"scripts":{"test":"make test;"},"homepage":"https://github.com/stream-utils/duplex-child-process","_id":"duplex-child-process@0.0.3","_shasum":"117b759572d2581894abd6de9c5e71a743ba363d","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"dougwilson","email":""},{"name":"jeromew","email":""},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"117b759572d2581894abd6de9c5e71a743ba363d","size":3222,"noattachment":false,"key":"/duplex-child-process/-/duplex-child-process-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/duplex-child-process/download/duplex-child-process-0.0.3.tgz"},"directories":{},"publish_time":1399420207657,"_hasShrinkwrap":false,"_cnpm_publish_time":1399420207657,"_cnpmcore_publish_time":"2021-12-15T11:09:59.554Z"},"0.0.2":{"name":"duplex-child-process","description":"Spawn a child process as a duplex stream","version":"0.0.2","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/stream-utils/duplex-child-process.git"},"bugs":{"url":"https://github.com/stream-utils/duplex-child-process/issues"},"devDependencies":{"mocha":"*","should":"*","stream-to":"*"},"scripts":{"test":"make test;"},"readmeFilename":"README.md","_id":"duplex-child-process@0.0.2","dist":{"shasum":"af16a6ee28e9cb26fc4c3b787ab198ef08e4949f","size":3129,"noattachment":false,"key":"/duplex-child-process/-/duplex-child-process-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/duplex-child-process/download/duplex-child-process-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"dougwilson","email":""},{"name":"jeromew","email":""},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"directories":{},"publish_time":1382428772937,"_hasShrinkwrap":false,"_cnpm_publish_time":1382428772937,"_cnpmcore_publish_time":"2021-12-15T11:09:59.740Z"},"0.0.1":{"name":"duplex-child-process","description":"Spawn a child process as a duplex stream","version":"0.0.1","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/stream-utils/duplex-child-process.git"},"bugs":{"url":"https://github.com/stream-utils/duplex-child-process/issues"},"devDependencies":{"mocha":"*","should":"*","stream-to":"*"},"scripts":{"test":"make test;"},"readmeFilename":"README.md","_id":"duplex-child-process@0.0.1","dist":{"shasum":"2f53bc39a7fe279ab4ef8191d69a576c59d7fe9e","size":3074,"noattachment":false,"key":"/duplex-child-process/-/duplex-child-process-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/duplex-child-process/download/duplex-child-process-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"dougwilson","email":""},{"name":"jeromew","email":""},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"directories":{},"publish_time":1381649054146,"_hasShrinkwrap":false,"_cnpm_publish_time":1381649054146,"_cnpmcore_publish_time":"2021-12-15T11:09:59.971Z"}},"readme":"# Duplex Child Process [![Build Status](https://travis-ci.org/stream-utils/duplex-child-process.png)](https://travis-ci.org/stream-utils/duplex-child-process)\n\nSpawn a child process as a duplex stream.\n\n```js\nvar Child_Process = require('duplex-child-process')\n\nvar toJPEG = Child_Process.spawn('convert', ['-', 'JPEG:-'])\nvar getFormat = Child_Process.spawn('identify', ['-format', '%m', '-'])\n\nfs.createReadStream('img.png')\n.pipe(toJPEG)\n.pipe(getFormat)\n.once('readable', function () {\n  var format = this.read().toString('utf8')\n  assert.equal(format, 'JPEG')\n})\n```\n\n## API\n\n### Child_Process.spawn(command, [args], [options])\n\nConvenience wrapper for:\n\n```js\nnew Child_Process().spawn(command, [args], [options])\n```\n\n### new Child_Process(options)\n\nCreates a new duplex child process instance.\nDoes not spawn a new child process yet.\nThis is separated from `.spawn()` because you may want to use this in your own constructor.\n\n\n### proc.spawn(command, [args], [options])\n\nThis actually spawns the child process.\nIn your own app, execute this once you've gotten all your arguments.\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2013 Jonathan Ong me@jongleberry.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_attachments":{},"homepage":"https://github.com/stream-utils/duplex-child-process#readme","bugs":{"url":"https://github.com/stream-utils/duplex-child-process/issues"},"license":"MIT"}