Skip to content

About

Line editing for interactive CLIs with command history

Resources

Stars

4 stars

Watchers

6 watching

Forks

Repository files navigation

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()

API

See the bare-readline reference.

License

Apache-2.0

About

Line editing for interactive CLIs with command history

Resources

Stars

4 stars

Watchers

6 watching

Forks

Releases

Used by

Contributors

Languages