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