zaccaria-cli
My single point library for cli apps
Install
Install it with
npm install zaccaria-cli
Usage
The following endpoints are exported:
$s
: promisified shelljs$b, Promise
: bluebird promises$d
: docopt$f.readLocal
: read local assets (relative path).$r.stdin
: promisified read from stdinwithTmp(f)
: executesf
by passing it a temporary file (that is deleted once finished) - returns a promise.withTmpDir(f, opts)
: executesf
by passing it a temporary directory. Returns a promise. See here for options (useunsafeCleanup: true
to cleanup the directory).$yaml(text)
: parse a yaml file into an object
Author
- Vittorio Zaccaria
License
Released under the BSD License.
New features
- add read from stdin -- Sep 1st 15
- export promisified fs -- Jul 25th 15
- add bluebrd, lodash, monet and shelljs -- Jul 25th 15
Bug fixes
- readlocal -- Jul 25th 15
Changes to the build process
- update package.json -- Jul 25th 15, Jul 25th 15, Jul 25th 15
- initial commit of files -- Jul 25th 15