bare-readline

1.0.6 • Public • Published

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

/bare-readline/

    Package Sidebar

    Install

    npm i bare-readline

    Weekly Downloads

    794

    Version

    1.0.6

    License

    Apache-2.0

    Unpacked Size

    17.2 kB

    Total Files

    4

    Last publish

    Collaborators

    • mafintosh
    • kasperisager