bind child_process.execFile to a file and configuration
npm install bound-execfileBind child_process.execFile to a file and configuration.
``javascriptbound-execfile
const node = require()(node
,-
{
args: {
prefix: ,e
alias: {
eval:
}
}
}
)
node({ eval: console.log('hello') }, (error, stdout, stderr) => {`
console.log(stdout.toString())
})
- file - <string> the name or path of the executable file to runconfiguration
- - <Object>args
- - <Object> configure options-to-argsprefix
- - <string>alias
- - <Object>behaviour
- - <Object>
- options - <Object> see the documentation for child_process.execFile.
Returns a function with the following signature:
fn([options], callback)
- options - <Object> passed on to/and parsed by options-to-argscallback` - mirrors the callback signature as described in the documentation for child_process.execFile
-
Returns <ChildProcess>
The options-to-args module