bare-readline
v1.0.6
Published
Line editing for interactive CLIs with command history
Downloads
2,697
Readme
bare-readline
Line editing for interactive CLIs with command history.
npm i bare-readline
Usage
const readline = require('bare-readline')
const rl = readline.createInterface({
input: stream,
output: stream
})
rl
.on('data', (line) => {
console.log(line)
rl.prompt()
})
.prompt()
License
Apache-2.0