execcli
Execute CLI command on sub process.
Last updated 10 months ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install execcli 
SYNC missed versions from official npm registry.

execcli

Build Status Code Climate Code Coverage npm Version

Execute CLI command on sub process.

Installation

npm install execcli --save

Usage

#!/usr/bin/env node

/**
 * This is an example to use execcli.
 */

'use strict'

const execcli = require('execcli')

// Equivalent to execute `ls -l .` from command line.
execcli('ls', [ '.', { 'l': true } ]).then(() => {
  /* ... */
})

Options

Key Description Default
notfound Instruction text when bin not found. ''
cwd Working directory path process.cwd()

License

This software is released under the MIT License.

Maintainers (1)
Downloads
Today 0
This Week 1
This Month 80
Last Day 1
Last Week 3
Last Month 184
Dependencies (5)
Dev Dependencies (8)

Copyright 2014 - 2016 © taobao.org |