bun-readline
TypeScript icon, indicating that this package has built-in type declarations

0.1.12 • Public • Published

bun-readline

npm (tag) NPM

GNU-Readline kind library for the Bun runtime.

Install

bun add bun-readline

Usage

import { readline } from 'bun-readline'

while (true) {
  const line = readline('Say anything... ')
  if (line.signal === 'CtrlC') {
    console.log('CtrlC')
    break
  }
  if (line.signal === 'CtrlD') {
    console.log('CtrlD')
    break
  }
  console.log(line.value)
}

Development

View instructions

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.12
    0
    • latest

Version History

Package Sidebar

Install

npm i bun-readline

Weekly Downloads

0

Version

0.1.12

License

MIT

Unpacked Size

7.73 MB

Total Files

14

Last publish

Collaborators

  • wobsoriano