Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

vamtiger-bash

0.0.20 • Public • Published

VAMTIGER Bash

Programmatically execute bash scripts.

Installation

VAMTIGER Bash can be installed using npm or yarn:

npm install --save vamtiger-bash

or

yarn add vamtiger-bash

Usage

Import or require a referece to VAMTIGER Bash:

import bash from 'vamtiger-bash';

or

const bash = require('vamtiger-bash').default;

Executing a bash script returns a Promise:

bash('some bash code')
    .then(handleResult)
    .catch(handleError);

Since VAMTIGER Bash returns a Promise, the result can be more conveniently referenced within an async function:

async someAsyncFunction function() {
    const bashResult = await bash('some bash code');
}

Keywords

Install

npm i [email protected]

Version

0.0.20

License

MIT

Unpacked Size

13.8 kB

Total Files

16

Last publish

Collaborators

  • avatar