vamtiger-bash
v0.0.25
Published
Programmatically execute bash scripts.
Downloads
457
Readme
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');
}