1.0.2 • Published 4 years ago

system-exec v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

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));
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago