# bare-tty

> Native TTY streams for JavaScript

Latest version **5.2.2** (published 2026-10-29) · Apache-2.0 license · 0 weekly downloads

## Install

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

## Health

**Score 75/100 (B)** — status: active.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.2.2 |
| Published | 2026-10-29 |
| First published | 2023-05-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 563.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 5 |
| Author | Holepunch |
| Maintainers | mafintosh |

## Links

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

## Dependencies (3)

- [bare-events](https://npm.io/package/bare-events.md) ^2.2.0
- [bare-stream](https://npm.io/package/bare-stream.md) ^2.0.0
- [bare-signals](https://npm.io/package/bare-signals.md) ^5.0.0

## Recent versions

- 5.2.2 (latest) — 2026-10-29
- 5.2.1 — 2026-08-28
- 5.2.0 — 2026-08-28
- 5.1.2 — 2026-07-07
- 5.1.1 — 2026-06-11
- 5.1.0 — 2026-03-27
- 5.0.3 — 2025-08-21
- 5.0.2 — 2025-03-24
- 5.0.1 — 2024-12-10
- 5.0.0 — 2024-11-26
- 4.0.2 — 2024-10-19
- 4.0.1 — 2024-09-13
- 3.4.4 — 2024-09-13
- 4.0.0 — 2024-09-11
- 3.4.3 — 2024-09-11
- … 26 more at https://npm.io/package/bare-tty/versions

## README

# bare-tty

Native TTY streams for JavaScript.

```
npm i bare-tty
```

## Usage

```js
const tty = require('bare-tty')

const stdout = new tty.WriteStream(1)

stdout.write('Hello world!\n')
```

## API

See the [`bare-tty` reference](https://docs.pears.com/reference/bare/modules/bare-tty).

## License

Apache-2.0

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