exc
v0.0.1
Published
Tool to Execute Commands
Maintainers
Readme
exc
Tool to Execute Commands
Features
- Auto-fetch fullpaths for
child_process.spawn - Realtime stdio piping
- Support for built-in win commands like
dir, viachild_process.execfallback - Resolve
gbktoutf8, viaiconv-lite
Todo
- Better module division
- Unix alias support
CLI (Terminal) Usage
npm install -g exc$ exc gulp -v
$ exc serve .
$ exc ls
$ exc dir # windows
$ exc "cd some/folder && ls" # &&-join
$ exc exc exc ls # funnyNodejs Library Usage
npm install excvar exc = require('exc')
var prc = exc('gulp', ['-v'])
// (same as:)
// var spawn = require('child_process').spawn
// var fullpath = find_fullpath('gulp')
// var prc = spawn(fullpath, ['-v'])