syscmd

0.1.1 • Public • Published

Syscmd

A small package that allows for shell commands to be executed right from Node 👩‍💻

npm version NPM Downloads
GitHub version GitHub issues GitHub pull-requests MIT license
RunKit state Gitter GitHub watchers GitHub stars

Installation

$ npm i --save syscmd

const syscmd = require('syscmd');

Usage

⭐ Standard Usage

const syscmd = require('syscmd');
syscmd('echo Hello!');
 
// Output: 
// HellO!

⭐ Redirect Output

const syscmd = require('syscmd');
syscmd('ls -la', (err, stdout, stderr) => {
  if (err)
    throw err;
  // Work with stdout here as output
});

⭐ No Output

const syscmd = require('syscmd');
syscmd('unzip archive.zip -d archive/', () => null);

syscmd © 2019, Tyler Holewinski. Released under the MIT License.
Authored and maintained by Tyler Holewinski with help from contributors.

GitHub @erwijet  ·  Instagram @erwijet

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i syscmd

    Weekly Downloads

    0

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    3.44 kB

    Total Files

    3

    Last publish

    Collaborators

    • erwijet