cross-exec-file 
Cross platform execFile
Install
$ npm install --save cross-exec-file
Usage
const crossExecFile = require('cross-exec-file');
crossExecFile('cli.js', ['unicorn'], (err, stdout, stderr) => {
console.log(stdout);
});
API
crossExecFile(bin, [args], [options], callback)
bin
Required
Type: string
Path to your binary to be ran.
args
Type: array
Arguments to run your binary with.
options
Provide options to be used with execFile
path
Type: string
Default: node
A custom path to a node executable.
callback(err, stdout, stderr)
Type: function
Returns the output from your binary.
License
MIT © Kevin Martensson