scriptrunnernode

1.0.2 • Public • Published

ScriptRunnerNode

Lets you run some bash commands in a shell from node.js

This package runs with no dependency

Working on node 6


Launch as Standalone :

chmod +x ./script.js

./script.js or sudo ./script.js


Or import it :

SRN.runCommand('echo yes', (res) => {
  if(res.includes('yes')){
    console.log('it works, I got a yes !');
  }
});

Or

SRN.runCommands(['echo SRN','ls','ls -al', 'echo it works']);

/scriptrunnernode/

    Package Sidebar

    Install

    npm i scriptrunnernode

    Weekly Downloads

    3

    Version

    1.0.2

    License

    ISC

    Last publish

    Collaborators

    • blipn