0.0.0 • Published 3 years ago

bash-run v0.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

bash-run

A simple framework for invoking bash commands from node.js scripts.

Example

const { run, runSync } = require("bash-run");

runSync(`echo "Hello, World!" > hello.txt`);

run("cat hello.txt").then(() => {
    console.log("success!");
}).catch((code) => {
    console.log(`failed with exit code ${code}`);
});