# @tapjs/stdin

> a built-in tap extension for t.stdin()

Latest version **4.3.12** (published 2026-09-03) · BlueOak-1.0.0 license · 0 weekly downloads

## Install

```sh
npm install @tapjs/stdin
pnpm add @tapjs/stdin
yarn add @tapjs/stdin
bun add @tapjs/stdin
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.3.12 |
| Published | 2026-09-03 |
| First published | 2023-08-04 |
| Weekly downloads | 0 |
| License | BlueOak-1.0.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | 20 \|\| >=22 |
| Dependencies | 0 |
| Unpacked size | 12 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2425 |
| Author | Isaac Z. Schlueter |
| Maintainers | ljharb, isaacs |
| Keywords | tapjs plugin |

## Links

- npm: https://www.npmjs.com/package/@tapjs/stdin
- Repository: https://github.com/tapjs/tapjs
- Homepage: https://github.com/tapjs/tapjs/tree/main/src/stdin#readme
- Issues: https://github.com/tapjs/tapjs/issues
- npm.io page: https://npm.io/package/@tapjs/stdin

## Recent versions

- 4.3.12 (latest) — 2026-09-03
- 1.0.0 (pre) — 2023-09-15
- 4.3.11 — 2026-07-27
- 4.3.10 — 2026-05-15
- 4.3.9 — 2026-05-13
- 4.3.8 — 2026-05-01
- 4.3.7 — 2026-04-17
- 4.3.6 — 2026-04-15
- 4.3.5 — 2026-04-05
- 4.3.4 — 2026-02-20
- 4.3.3 — 2026-02-18
- 4.3.2 — 2026-02-18
- 4.3.1 — 2026-02-05
- 4.3.0 — 2025-12-01
- 4.2.1 — 2025-11-26
- … 75 more at https://npm.io/package/@tapjs/stdin/versions

## README

# `@tapjs/stdin`

A default tap plugin providing `t.stdin()`.

## USAGE

This plugin is installed with tap by default. If you had
previously removed it, you can `tap plugin add @tapjs/stdin` to
bring it back.

### Interface `StdinOpts`

Options for `t.stdin()`

All of the normal Base and Extra options are also allowed.

- `tapStream` - a
  [`Minipass<Buffer|string>`](https://isaacs.github.io/minipass/)
  stream or Node.js `ReadableStream`. If provided, this will be
  the source of TAP data. Defaults to `process.stdin`.

### `t.stdin([name], [options]): PromiseWithSpawn`

Arguments:

- `name` (optional) `string` - Name for the subtest, defaults to
  `/dev/stdin`
- `options` (optional) `StdinOpts` object

Processes standard input as a TAP stream.

Returns a Promise that resolves when the test is complete. The
`subtest` member on the Promise is a
[`Stdin`](https://tapjs.github.io/tapjs/classes/_tapjs_core.stdin.Stdin.html)
instance.

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