exc
v0.0.1
Published
Tool to Execute Commands
Downloads
3
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.exec
fallback - Resolve
gbk
toutf8
, 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 # funny
Nodejs Library Usage
npm install exc
var 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'])