exeggutor
v1.0.3
Published
An event-based command executor written for nodejs.
Downloads
5
Readme
Exeggutor
Documentation
Quick Start
const { execute } = require('exeggutor');
await execute('ls', ['-la']);
import { execute } from 'exeggutor';
await execute('cat', ['a_really_large_input_file.txt']);
Exeggutor
const { Exeggutor } = require('exeggutor');
const exeggutor = new Exeggutor();
import { Exeggutor } from 'exeggutor';
const exeggutor: Exeggutor = new Exeggutor();
exeggutor
.on('stdout', (buf) => {
/* possibly write to stdout */
})
.on('stdout', (buf) => {
/* possibly parse for keywords/ symbols */
})
.on('stderr', (buf) => {
/* possibly write to stderr */
});