{"_id":"van","_rev":"1745679","name":"van","description":"All of your processes can pile into the van.","dist-tags":{"0.0.1":"0.0.1","0.0.2":"0.0.2","latest":"0.0.4"},"maintainers":[{"name":"mbleigh","email":"michael@intridea.com"},{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"time":{"modified":"2026-11-19T14:26:29.000Z","created":"2014-05-06T02:07:14.656Z","0.0.4":"2014-06-09T16:51:31.006Z","0.0.3":"2014-06-09T16:47:42.228Z","0.0.2":"2014-05-22T02:52:25.677Z","0.0.1":"2014-05-06T02:07:14.656Z"},"users":{},"author":{"name":"Michael Bleigh"},"repository":{"type":"git","url":"https://github.com/divshot/van.git"},"versions":{"0.0.4":{"name":"van","version":"0.0.4","description":"All of your processes can pile into the van.","main":"lib/index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/divshot/van.git"},"keywords":["processes","interleaving","command-line"],"bin":{"van":"bin/van"},"author":{"name":"Michael Bleigh"},"license":"MIT","bugs":{"url":"https://github.com/divshot/van/issues"},"homepage":"https://github.com/divshot/van","dependencies":{"chalk":"^0.4.0","lodash":"^2.4.1"},"devDependencies":{"mocha":"~1.18.2","chai":"^1.9.1"},"_id":"van@0.0.4","dist":{"shasum":"b3b999a948ad84f2c925e6f89deaad4f1a457e0d","tarball":"http://registry-npm.ywwl.com/van/download/van-0.0.4.tgz","integrity":"sha512-vFXDrkEpZHyczhpEiSqEqN97ECqoJAbZjuzemcC4JLpXPP7nbrBnmBRHPCslneZ8KuUxNm9uWJuv95kn2BstIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFlfWWgzO3669nCaKSSHN6/g8VpJna1Z2FiNemwUA9azAiB4zG39vt2+16nrSJqzgpK6e1qVyutg6lXtYzCD+BYiAw=="}],"size":4571,"noattachment":false,"key":"/van/-/van-0.0.4.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"mbleigh","email":"michael@intridea.com"},{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1402332691006,"_cnpm_publish_time":1402332691006},"0.0.3":{"name":"van","version":"0.0.3","description":"All of your processes can pile into the van.","main":"lib/index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/divshot/van.git"},"keywords":["processes","interleaving","command-line"],"bin":{"van":"bin/van"},"author":{"name":"Michael Bleigh"},"license":"MIT","bugs":{"url":"https://github.com/divshot/van/issues"},"homepage":"https://github.com/divshot/van","dependencies":{"chalk":"^0.4.0","lodash":"^2.4.1"},"devDependencies":{"mocha":"~1.18.2","chai":"^1.9.1"},"_id":"van@0.0.3","dist":{"shasum":"0f0fd3aaebd7cd2bf750477722cac67e4acd95de","tarball":"http://registry-npm.ywwl.com/van/download/van-0.0.3.tgz","integrity":"sha512-sY7tXBvrvJGMFdd1MhiPKITm5OBdiGDze/tzIDjYR1wtS8o8V2UbSW5AMHWxUo5OHbhbfX3ODsLXcJBt99gPCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5uK7NEdT8lZCW0wYOwfpjbgBlA7xaVtd3RNfEokTH6gIgHhNHxlZaEfhqlHcRwMrdEWAC0SYXRGi0FADWyX49qw4="}],"size":4558,"noattachment":false,"key":"/van/-/van-0.0.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"mbleigh","email":"michael@intridea.com"},{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1402332462228,"_cnpm_publish_time":1402332462228},"0.0.2":{"name":"van","version":"0.0.2","description":"All of your processes can pile into the van.","main":"lib/index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/divshot/van.git"},"keywords":["processes","interleaving","command-line"],"bin":{"van":"bin/van"},"author":{"name":"Michael Bleigh"},"license":"MIT","bugs":{"url":"https://github.com/divshot/van/issues"},"homepage":"https://github.com/divshot/van","dependencies":{"chalk":"^0.4.0","lodash":"^2.4.1"},"devDependencies":{"mocha":"~1.18.2","chai":"^1.9.1"},"_id":"van@0.0.2","dist":{"shasum":"2169893be10fe727da362057dc31e66d63c4745a","tarball":"http://registry-npm.ywwl.com/van/download/van-0.0.2.tgz","integrity":"sha512-psYLmLfOwesjFnB8/BaEoofQNIcld8Eq1FQH4qm9KLe5neT+55nWTWdh6KnJ8sclx0kfapBJAhrHStPmEmwb2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFfmnKozQHlalYw7sVkC9wOSRIzSDmNpXCaJ1l44enlrAiEAp7e1Cq3rK0cbGdtd1FJhyVIXtKXrhwQKGmpYSd7ykbQ="}],"size":4599,"noattachment":false,"key":"/van/-/van-0.0.2.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"mbleigh","email":"michael@intridea.com"},"maintainers":[{"name":"mbleigh","email":"michael@intridea.com"}],"publish_time":1400727145677,"_cnpm_publish_time":1400727145677},"0.0.1":{"name":"van","version":"0.0.1","description":"All of your processes can pile into the van.","main":"lib/van.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/divshot/van.git"},"keywords":["processes","interleaving","command-line"],"bin":{"van":"bin/van"},"author":{"name":"Michael Bleigh"},"license":"MIT","bugs":{"url":"https://github.com/divshot/van/issues"},"homepage":"https://github.com/divshot/van","dependencies":{"colors":"~0.6.2","lodash":"^2.4.1"},"devDependencies":{"mocha":"~1.18.2","chai":"^1.9.1"},"_id":"van@0.0.1","dist":{"shasum":"3b321ccd85945fb77d9602501922cae2ab652c86","tarball":"http://registry-npm.ywwl.com/van/download/van-0.0.1.tgz","integrity":"sha512-1OjcGgdfbsUmnzT3twXEh6w4s3oB8toFyCMjBPZMqc6zZWnu9kOw5szOpaABr2joCkJ99WJCYwzjK2l9GMAhvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDmVZUJkYWANy1MazrfYZ/6c7e4YStphkwZRcxJUry3EAiEArHDt0GtCGWAEqOE+vmmo7NCB26e0qP+TzcfA8BsuSDI="}],"size":3054,"noattachment":false,"key":"/van/-/van-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"mbleigh","email":"michael@intridea.com"},"maintainers":[{"name":"mbleigh","email":"michael@intridea.com"}],"publish_time":1399342034656,"_cnpm_publish_time":1399342034656}},"readme":"# Van: Simple Multi-Process Execution\n\n[![Code Climate](https://codeclimate.com/github/divshot/van.png)](https://codeclimate.com/github/divshot/van)\n\nVan is meant to provide simple multi-process execution for Node scripts.\n\n**Warning:** This library was created and intended for spinning up multiple\nprocesses on a local development environment. It isn't designed or intended\n(at least at this point) for any kind of production-server like usage. In\nother words, this is a dev utility not a [foreman](https://github.com/ddollar/foreman)\nreplacement.\n\n## Installation\n\n    npm install --save van\n\n## Interleave\n\nThe most common use case for Van is to run several processes at once and\ninterleave their output. Van also makes it easy to send termination signals\nto all of the child processes at once as well as know when all child processes\nhave exited. An example:\n\n```js\nvar Van = require(\"van\")\n\nvar van = new Van({\n  scripts: {\n    jekyll: 'bundle exec jekyll build --watch', \n    server: 'superstatic -p 4000'\n  }\n});\n\n// spawn the child processes and interleave output\nvan.start();\n\nprocess.on('SIGINT', function() {\n  // send a kill signal to each child process\n  van.stop();\n});\n```\n\n## Sequence\n\nYou may also wish to run a series of scripts in sequence, stopping execution\nif any of them exit with a non-zero code. Van makes this easy, too!\n\n```js\nvar van = new Van({\n  scripts: [\n    \"my/first/script\",\n    \"my/second/script\"\n  ]\n});\n\nvan.run();\n```\n\nBy calling `run()` instead of `start()` you are signaling that you wish to execute\nthe scripts sequentially.\n\n## Custom Configuration\n\nYou may need more sophisticated configuration than the `scripts` option provides.\nFor these cases, you can manually add new passengers to the van with some additional\nconfiguration options:\n\n```js\nvar van = new Van();\n\nvan.addPassenger('path/to/script', {cwd: '/working/dir'});\n\nvan.start(); // or .run();\n```\n\nThe available options are:\n\n* **cwd:** pass in a working directory you'd like the script to run in\n* **prefix:** when running in interleave mode, this will be the [prefix]\n* **color:** choose a console color for the prefix. Can be any color supported by [colors](https://github.com/Marak/colors.js)\n\n## License (MIT)\n\nCopyright (c) 2014 Divshot, Inc.\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.\n","_attachments":{},"homepage":"https://github.com/divshot/van","bugs":{"url":"https://github.com/divshot/van/issues"},"license":"MIT"}