JSPM

  • Created
  • Published
  • Downloads 7203
  • Score
    100M100P100Q125730F
  • License MIT

Execute CLI command on sub process.

Package Exports

  • execcli

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (execcli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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";

var execcli = require('execcli');

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

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.