# bare-readline

> Line editing for interactive CLIs with command history

Latest version **1.3.1** (published 2026-04-02) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install bare-readline
pnpm add bare-readline
yarn add bare-readline
bun add bare-readline
```

## Health

**Score 70/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2026-04-02 |
| First published | 2023-08-18 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 20.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 4 |
| Author | Holepunch |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/bare-readline
- Repository: https://github.com/holepunchto/bare-readline
- Homepage: https://github.com/holepunchto/bare-readline#readme
- Issues: https://github.com/holepunchto/bare-readline/issues
- npm.io page: https://npm.io/package/bare-readline

## Dependencies (2)

- [bare-stream](https://npm.io/package/bare-stream.md) ^2.0.0
- [bare-ansi-escapes](https://npm.io/package/bare-ansi-escapes.md) ^2.0.0

## Recent versions

- 1.3.1 (latest) — 2026-04-02
- 1.2.2 — 2026-02-16
- 1.2.1 — 2026-01-05
- 1.2.0 — 2025-11-07
- 1.1.0 — 2025-08-22
- 1.0.9 — 2025-05-01
- 1.0.8 — 2025-05-01
- 1.0.7 — 2025-01-28
- 1.0.6 — 2024-09-12
- 1.0.5 — 2024-06-03
- 1.0.4 — 2024-05-15
- 1.0.3 — 2024-04-28
- 1.0.2 — 2024-03-07
- 1.0.1 — 2024-03-07
- 1.0.0 — 2024-02-05
- … 3 more at https://npm.io/package/bare-readline/versions

## README

# bare-readline

Line editing for interactive CLIs with command history.

```
npm i bare-readline
```

## Usage

```js
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

---
_Source: https://npm.io/package/bare-readline · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
