1.2.0 • Published 1 year ago
exec-local-bin v1.2.0
exec-local-bin
A simple helper to execute local node_module bin in node.
Install
npm i exec-local-bin
How to use
const execLocalBin = require('exec-local-bin');
execLocalBin('relaxed') // runs: ./node_modules/.bin/relaxed
.then((stdout) => console.log(stdout))
.catch((error) => console.log(error));
Arguments
bin
(required) = the executable file and the paramsoptions
(optional) = can accept child_process.exec options