holepunchto / bare-readline

Line editing for interactive CLIs with command history

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Line editing for interactive CLIs with command history

License:Apache License 2.0


Languages

Language:JavaScript 100.0%