Package Exports
- spawn-cmd
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (spawn-cmd) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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: