0.1.2 • Published 6 years ago

shellcommand v0.1.2

Weekly downloads
4
License
UNLICENSED
Repository
github
Last release
6 years ago

Build Status:

Master Branch:

Build Status

Overview:

ShellCommand is a child_process wrapper for Linux that enables you to execute async shell commands easily from within NodeJS.

How To:

To use ShellCommand, import the ShellCommand class and create an instance. Then use the executeAsync() function to execute the command.

If an error is encountered, the error text from the command is returned, otherwise you will get the output of the command.

Example:

// Use await with try catch or promise().then().catch();

import { ShellCommand } from 'shellcommand';
const pwd = new ShellCommand();
result = await pwd.executeAsync(`pwd`);
console.log(result); // Should return the output of pwd
0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago