https://github.com/featurist/spawn-cmd
node.js module to run windows and unix processes the same way
https://github.com/featurist/spawn-cmd
Last synced: 18 days ago
JSON representation
node.js module to run windows and unix processes the same way
- Host: GitHub
- URL: https://github.com/featurist/spawn-cmd
- Owner: featurist
- Created: 2013-12-01T10:31:00.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-19T09:03:38.000Z (almost 12 years ago)
- Last Synced: 2025-07-26T07:41:05.749Z (6 months ago)
- Language: PogoScript
- Homepage:
- Size: 288 KB
- Stars: 9
- Watchers: 6
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spawn-cmd
[](https://travis-ci.org/featurist/spawn-cmd)
child_process.spawn ignores PATHEXT on Windows:
https://github.com/joyent/node/issues/2318
This tiny shim provides a uniform interface to spawn a process on linux and windows:
var spawn = require('spawn-cmd').spawn;
var echo = spawn('echo', ['OHRLLY']);
echo.stdout.on('data', function() { ... });
This doesn't make commands portable, because this library doesn't do any translation of unix commands to their windows equivalents. It just uses the 'comspec' environment variable on windows. You might want to look at this if you want more:
https://github.com/ForbesLindesay/win-spawn