@extremeexploit/inputbox
v1.1.1
Published
A library to separate stdin and stdout in a NodeJS terminal
Downloads
4
Readme
inputbox
A library that allows you to use both stdin and stdout without worrying about them overlapping
Example
import inputBox from '@extremeexploit/inputbox';
function ibHandler(str) {
ib.log('Got the line ' + str);
}
const ib = new inputBox('> ', ibHandler);
// Log example output
setInterval(() => {
ib.log("just displaying some stuff");
}, 1000);