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
- Host: GitHub
- URL: https://github.com/extremeexploit/inputbox
- Owner: EXtremeExploit
- License: lgpl-3.0
- Created: 2023-12-26T04:07:28.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-08T03:38:00.000Z (almost 2 years ago)
- Last Synced: 2025-09-18T22:43:45.095Z (9 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@extremeexploit/inputbox
- Size: 675 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
```
