Nutmeg Pumpkin Macchiato

    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

    Keywords

    Install

    npm i bun-readline

    DownloadsWeekly Downloads

    10

    Version

    0.1.12

    License

    MIT

    Unpacked Size

    7.73 MB

    Total Files

    14

    Last publish

    Collaborators

    • wobsoriano