1.0.2 • Published 4 years ago
system-exec v1.0.2
system-exec
This module is a promisified version of child_process.exec
that allows you to access the text printed to the STDERR from
the error object's message property.
Example
const { exec } = require("system-exec");
async function main() {
try {
const result = await exec("ls");
console.log(result);
} catch (e) {
console.log("Didn't work: " + e.message);
}
}
main().catch(err => console.log(err.stack));