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

execcli

5.0.6 • Public • Published

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.

Install

npm i execcli

DownloadsWeekly Downloads

3,389

Version

5.0.6

License

MIT

Unpacked Size

42.6 kB

Total Files

32

Last publish

Collaborators

  • avatar