A small package that allows for shell commands to be executed right from Node 👩💻
$ npm i --save syscmd
const syscmd = require('syscmd');
const syscmd = require('syscmd');
syscmd('echo Hello!');
// Output:
// HellO!
const syscmd = require('syscmd');
syscmd('ls -la', (err, stdout, stderr) => {
if (err)
throw err;
// Work with stdout here as output
});
const syscmd = require('syscmd');
syscmd('unzip archive.zip -d archive/', () => null);
syscmd (MIT) 2019, Tyler Holewinski. Released under the MIT License.
Authored and maintained by Tyler Holewinski with help from contributors.