@extremeexploit/inputbox

1.0.1 • Public • Published

inputbox

A library that allows you to use both stdin and stdout without worrying about them overlapping

NOTE: Currently moving using the arrow keys isnt supported

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);

Video example

Readme

Keywords

none

Package Sidebar

Install

npm i @extremeexploit/inputbox

Weekly Downloads

0

Version

1.0.1

License

LGPL-3.0-only

Unpacked Size

737 kB

Total Files

5

Last publish

Collaborators

  • extremeexploit