Miss any of our Open RFC calls?Watch the recordings here! »

exc

0.0.1 • Public • Published

exc

Tool to Execute Commands

Features

  • Auto-fetch fullpaths for child_process.spawn
  • Realtime stdio piping
  • Support for built-in win commands like dir, via child_process.exec fallback
  • Resolve gbk to utf8, via iconv-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'])

Install

npm i exc

DownloadsWeekly Downloads

2

Version

0.0.1

License

none

Last publish

Collaborators

  • avatar