1.0.2 • Published 7 years ago

scriptrunnernode v1.0.2

Weekly downloads
8
License
ISC
Repository
github
Last release
7 years ago

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

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago