An open API service indexing awesome lists of open source software.

https://github.com/extremeexploit/inputbox

A library to separate stdin and stdout in a NodeJS terminal
https://github.com/extremeexploit/inputbox

Last synced: 5 months ago
JSON representation

A library to separate stdin and stdout in a NodeJS terminal

Awesome Lists containing this project

README

          

# inputbox

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

# Example
```js
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](video-example.gif)