get-exec-file

v1.1.0
Promisify execFile
get execFile promise promisify childprocess process

get-exec-file Build Status

Promisify execFile

Install

$ npm install --save get-exec-file

Usage

const execFile = require('get-exec-file');

execFile('./cli.js', ['foo', 'bar']).then(result => {
    //=> {stdout: 'foo', stderr: 'bar'}
});

API

execFile(file[, args][, options])

file

Required
Type: string

The filename of the program to run.

args

Type: string[]

Array List of string arguments.

options

Type: object

Options object of execFile.

License

MIT © Sam Verschueren

npm i get-exec-file

Metadata

  • MIT
  • >=0.12.0
  • Sam Verschueren
  • released 1/30/2017

Downloads

Maintainers