bash-run

0.0.0 • Public • Published

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}`);
});

/bash-run/

    Package Sidebar

    Install

    npm i bash-run

    Weekly Downloads

    1

    Version

    0.0.0

    License

    MIT

    Unpacked Size

    2.94 kB

    Total Files

    4

    Last publish

    Collaborators

    • carlfriess