{"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":"http://registry-npm.ywwl.com/win-spawn/download/win-spawn-1.1.1.tgz","integrity":"sha512-emsTIOBsWHKsb5S8EozxDfBv6qfPnLEGpaDTrKxtCWjOfCZ/x7Te7wttStVvwZf4ps4b66v6eohPL64QQVMCew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPvrBRUkIzlXjOkVlyPLxvXCJf870blE29gBF8ZQ7LywIgKfKZzs+Pl8fbfsWnl62ClkscWPI+6VtTsKOlPJ/nv7w="}],"size":2084,"noattachment":false,"key":"/win-spawn/-/win-spawn-1.1.1.tgz"},"_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":{},"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","publish_time":1359945286655,"_cnpm_publish_time":1359945286655,"dist-tags":{"latest":"2.0.0"}}