{"_id":"win-spawn","_rev":"34-81262d343e16f0adfd89768de806a251","name":"win-spawn","description":"Spawn for node.js but in a way that works regardless of which OS you're using","dist-tags":{"latest":"2.0.0"},"versions":{"0.0.0":{"name":"win-spawn","version":"0.0.0","description":"Spawn for node.js but in a way that works regardless of which OS you're using","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/win-spawn.git"},"author":"","license":"BSD","_id":"win-spawn@0.0.0","dist":{"shasum":"f025bea565ddcff21c7fa4aa8f9396578f3b4d81","tarball":"https://registry.npmjs.org/win-spawn/-/win-spawn-0.0.0.tgz","integrity":"sha512-1QgDXcNgrDf+LKmv7n4fdzRTtgcJYLUdOJ8duIN42HxaScSmrOsqE97wWxrQFpMzwcVi06k39gCFPC55I7N/yw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC+kf8P8gl2qwtj/sevGagp9Vnz6yfYyT3K73BnoO1tVAiEAtiexqyC84Fj9M0raPRsRzFNOBIEYT5ZemSvHhwKQSts="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"forbes","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbes","email":"forbes@lindesay.co.uk"}],"directories":{},"deprecated":"use [cross-spawn](https://github.com/IndigoUnited/node-cross-spawn) or [cross-spawn-async](https://github.com/IndigoUnited/node-cross-spawn-async) instead."},"1.0.1":{"name":"win-spawn","version":"1.0.1","description":"Spawn for node.js but in a way that works regardless of which OS you're using","main":"index.js","repository":{"type":"git","url":"https://github.com/ForbesLindesay/win-spawn.git"},"bin":{"win-spawn":"./bin/win-spawn","win-fork":"./bin/win-spawn"},"author":{"name":"ForbesLindesay"},"license":"BSD","_id":"win-spawn@1.0.1","dist":{"shasum":"bc2842f868fbd937d2897a18e170613a4b11a5b3","tarball":"https://registry.npmjs.org/win-spawn/-/win-spawn-1.0.1.tgz","integrity":"sha512-7pI2QseFyleY8zjSv+CmnPz0mVdCFeP6BbxY3NS0d4G2vuRm+/JbtJoMq0PlBRkXwU6852pmbX7/Ze20bFeAgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDME6I83hOX1raBqfoeHqVJX8N7FCN21832uVPN4unPAQIgbc77eum/Win7/P8uWSONF8+mGuRTQSjtERfPn7VdUM8="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"deprecated":"use [cross-spawn](https://github.com/IndigoUnited/node-cross-spawn) or [cross-spawn-async](https://github.com/IndigoUnited/node-cross-spawn-async) instead."},"1.0.2":{"name":"win-spawn","version":"1.0.2","description":"Spawn for node.js but in a way that works regardless of which OS you're using","main":"index.js","repository":{"type":"git","url":"https://github.com/ForbesLindesay/win-spawn.git"},"bin":{"win-spawn":"./bin/win-spawn","win-fork":"./bin/win-spawn"},"author":{"name":"ForbesLindesay"},"license":"BSD","_id":"win-spawn@1.0.2","dist":{"shasum":"3e46876832992e8a08e3e5955a5140def3e5e9bb","tarball":"https://registry.npmjs.org/win-spawn/-/win-spawn-1.0.2.tgz","integrity":"sha512-wtPtYccIIrNrex1+g/WBSyxlwtutJfYEAeEwaZ3MInlDF8hakGZUC8xLW7tXLGRqExoYEfWhGQVjH2J0ossHzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFBzSokWKeaba+g+rvq6nqIgT9itYml21QEU+xXfN9XRAiEA8tfng/WSi9qmc0HMbU/IbSt4pDN5EcADCLIvL9OQb2k="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"deprecated":"use [cross-spawn](https://github.com/IndigoUnited/node-cross-spawn) or [cross-spawn-async](https://github.com/IndigoUnited/node-cross-spawn-async) instead."},"1.1.0":{"name":"win-spawn","version":"1.1.0","description":"Spawn for node.js but in a way that works regardless of which OS you're using","main":"index.js","repository":{"type":"git","url":"https://github.com/ForbesLindesay/win-spawn.git"},"bin":{"win-spawn":"./bin/win-spawn","win-fork":"./bin/win-spawn","win-line-endings":"./bin/win-line-endings"},"author":{"name":"ForbesLindesay"},"license":"BSD","_id":"win-spawn@1.1.0","dist":{"shasum":"f2fc3934f52e1055844693c4db85118fc5758dc5","tarball":"https://registry.npmjs.org/win-spawn/-/win-spawn-1.1.0.tgz","integrity":"sha512-1j3CnZjw52DfP/iwcaRNDGj5aly2BM/BF2/T9lIcxoxM3WlqEY9FSCECM+JxYrHUbLYb7LwRyFPD4gmvnBpDYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBe0IiS71n9fBcaUiHG4EiVF3uJu0sl4dHo80ippFgR1AiAfvRpu0DMQzWE0YwuQZhpcIbzkugnGhtatrYHzUA+XJA=="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"deprecated":"use [cross-spawn](https://github.com/IndigoUnited/node-cross-spawn) or [cross-spawn-async](https://github.com/IndigoUnited/node-cross-spawn-async) instead.","directories":{}},"1.1.1":{"name":"win-spawn","version":"1.1.1","description":"Spawn for node.js but in a way that works regardless of which OS you're using","main":"index.js","repository":{"type":"git","url":"https://github.com/ForbesLindesay/win-spawn.git"},"bin":{"win-spawn":"./bin/win-spawn","win-fork":"./bin/win-spawn","win-line-endings":"./bin/win-line-endings"},"devDependencies":{"win-spawn":"*"},"scripts":{"prepublish":"win-line-endings"},"author":{"name":"ForbesLindesay"},"license":"BSD","_id":"win-spawn@1.1.1","dist":{"shasum":"5aeda694162c14e46aeee4f214adf44b5437c5f6","tarball":"https://registry.npmjs.org/win-spawn/-/win-spawn-1.1.1.tgz","integrity":"sha512-emsTIOBsWHKsb5S8EozxDfBv6qfPnLEGpaDTrKxtCWjOfCZ/x7Te7wttStVvwZf4ps4b66v6eohPL64QQVMCew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPvrBRUkIzlXjOkVlyPLxvXCJf870blE29gBF8ZQ7LywIgKfKZzs+Pl8fbfsWnl62ClkscWPI+6VtTsKOlPJ/nv7w="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"deprecated":"use [cross-spawn](https://github.com/IndigoUnited/node-cross-spawn) or [cross-spawn-async](https://github.com/IndigoUnited/node-cross-spawn-async) instead.","directories":{}},"1.1.2":{"name":"win-spawn","version":"1.1.2","description":"Spawn for node.js but in a way that works regardless of which OS you're using","main":"index.js","repository":{"type":"git","url":"https://github.com/ForbesLindesay/win-spawn.git"},"bin":{"win-spawn":"./bin/win-spawn","win-fork":"./bin/win-spawn","win-line-endings":"./bin/win-line-endings"},"devDependencies":{"win-spawn":"*"},"scripts":{"prepublish":"win-line-endings"},"author":{"name":"ForbesLindesay"},"license":"BSD","_id":"win-spawn@1.1.2","dist":{"shasum":"1dda8d8ac672b7ef85245ff7487200b5d7d3a168","tarball":"https://registry.npmjs.org/win-spawn/-/win-spawn-1.1.2.tgz","integrity":"sha512-fWHKOxTvTRMUJ8aSyu8p2dGej2A6jT72toy3tfZ6TSeraxytRG/r9mJEOelUN9x5FcQpPcfeUTixXTRtSxM3LQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNhscg9oxSEggFIcX6Pj77EDTHhyF1P/PgxxZAo/U1JgIhAK4OdjGaJBl7J70Nk8iJqSo85WznYtQgcyGh068JwSes"}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"deprecated":"use [cross-spawn](https://github.com/IndigoUnited/node-cross-spawn) or [cross-spawn-async](https://github.com/IndigoUnited/node-cross-spawn-async) instead.","directories":{}},"2.0.0":{"name":"win-spawn","version":"2.0.0","description":"Spawn for node.js but in a way that works regardless of which OS you're using","main":"index.js","repository":{"type":"git","url":"https://github.com/ForbesLindesay/win-spawn.git"},"bin":{"win-spawn":"./bin/win-spawn"},"devDependencies":{"linify":"~1.0.1"},"scripts":{"prepublish":"linify transform bin"},"author":{"name":"ForbesLindesay"},"license":"BSD","_id":"win-spawn@2.0.0","dist":{"shasum":"397a29130ec98d0aa0bc86baa4621393effd0b07","tarball":"https://registry.npmjs.org/win-spawn/-/win-spawn-2.0.0.tgz","integrity":"sha512-eL7sqd9fXWpvV9ryzGQJh713ewWntqcmcM2pj5/Tikh8AyeXkwPYd+tBT6R+Cn7IjGmJfolmrqWclpNCf4g8GQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpAqj4POXOKopJt24VV4iHCtcIqBb3ar/vYtLYKJTPnwIgI4ZI8zPf8TNGiMazmo6VSpE6mwaF/HyCXokgIboqLV8="}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"deprecated":"use [cross-spawn](https://github.com/IndigoUnited/node-cross-spawn) or [cross-spawn-async](https://github.com/IndigoUnited/node-cross-spawn-async) instead.","directories":{}}},"readme":"# win-spawn\n\n  Spawn for node.js but in a way that works regardless of which OS you're using.  Use this if you want to use spawn with a JavaScript file.  It works by explicitly invoking node on windows.  It also shims support for environment variable setting by attempting to parse the command with a regex.  Since all modification is wrapped in `if (os === 'Windows_NT')` it can be safely used on non-windows systems and will not break anything.\n\n## Installation\n\n  $ npm install win-spawn\n\n## Usage\n\n### Command Line\n\n  All the following will work exactly as if the 'win-spawn ' prefix was ommitted when on unix.\n\n    $ win-spawn foo\n    $ win-spawn ./bin/foo\n    $ win-spawn NODE_PATH=./lib foo\n    $ win-spawn NODE_PATH=./lib foo arg1 arg2\n\n  You can also transform all the line endings in a directory from `\\r\\n` to `\\n` just by running:\n\n    $ win-line-endings\n\n  You can preview the changes by running:\n\n    $ win-line-endings -p\n\n  It will ignore `node_modules` and `.git` by default, but is not clever enough to recognise binary files yet.\n\n### API\n\nThis will just pass through to `child_process.spawn` on unix systems, but will correctly parse the arguments on windows.\n\n```javascript\nspawn('foo', [], {stdio: 'inherit'});\nspawn('./bin/foo', [], {stdio: 'inherit'});\nspawn('NODE_PATH=./lib foo', [], {stdio: 'inherit'});\nspawn('NODE_PATH=./lib foo', [arg1, arg2], {stdio: 'inherit'});\n```\n\n![viewcount](https://viewcount.jepso.com/count/ForbesLindesay/win-spawn.png)\n","maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"time":{"modified":"2022-06-29T02:02:01.602Z","created":"2012-09-19T19:39:03.443Z","0.0.0":"2012-09-19T19:39:04.742Z","1.0.1":"2013-01-31T10:41:53.097Z","1.0.2":"2013-01-31T10:57:16.203Z","1.1.0":"2013-02-04T02:16:33.063Z","1.1.1":"2013-02-04T02:34:46.655Z","1.1.2":"2013-05-29T15:14:22.929Z","2.0.0":"2013-08-01T05:19:01.982Z"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/win-spawn.git"},"author":{"name":"ForbesLindesay"},"users":{"kxbrand":true,"jhermsmeier":true,"bret":true,"jeben":true,"kangas":true,"qbylucky":true,"yinfxs":true,"takonyc":true},"license":"BSD","readmeFilename":"README.md"}