Skip to content

Line editing for interactive CLIs with command history

License

Notifications You must be signed in to change notification settings

holepunchto/bare-readline

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

License

Apache-2.0

About

Line editing for interactive CLIs with command history

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •