@danielberndt/exec
v1.2.1
Published
Wrap child_process.exec with Promise and add pretty output
Downloads
69
Readme
exec
promisifies require("child_process").exec
and pretty-prints the output of stdout and stderr as data comes in.
install
npm i @danielberndt/exec;
usage examples:
const result = await exec("ls -l");
exec("ls -l doesntexist").catch(errCode => {
// do something with errCode
});