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'])

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    2

Package Sidebar

Install

npm i exc

Weekly Downloads

2

Version

0.0.1

License

none

Last publish

Collaborators

  • fritx