Tool to Execute Commands
- Cross-Platform, via node.js
- Realtime native stdio, via
spawn
&pipe
- Auto-fetch fullpaths for
spawn
, viapath.resolve
&shelljs.which
- Support for built-in win commands like
dir
, viaexec
fallback - Resolve
gbk
toutf8
, viaiconv-lite
- Better module division
- Unix alias support
npm install -g exc
$ exc gulp -v
$ exc serve .
$ exc ls
$ exc dir # windows
$ exc "cd some/folder && ls" # &&-join
$ exc exc exc ls # funny
npm install exc
var exc = require('exc')
exc('gulp', ['-v'], function(err, prc){
// (same as:)
// var spawn = require('child_process').spawn
// var fullpath = find_fullpath('gulp')
// var prc = spawn(fullpath, ['-v'])
})