# pausing-transform

> A transform stream that will buffer data written until flushed.

Latest version **1.0.2** (published 2026-02-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install pausing-transform
pnpm add pausing-transform
yarn add pausing-transform
bun add pausing-transform
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2026-02-12 |
| First published | 2017-11-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dan Kolz of Emergent Ideas |
| Maintainers | dankolz |
| Keywords | stream, express, transform, pause |

## Links

- npm: https://www.npmjs.com/package/pausing-transform
- Repository: https://github.com/EmergentIdeas/pausing-transform
- Homepage: https://github.com/EmergentIdeas/pausing-transform#readme
- Issues: https://github.com/EmergentIdeas/pausing-transform/issues
- npm.io page: https://npm.io/package/pausing-transform

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2026-02-12
- 1.0.1 — 2019-07-25
- 1.0.0 — 2017-11-14

## README

# Pausing Transform

A transform stream that will buffer data written until flushed. I'm using this hold
and transform my rendered output before it's written to the express response object
so that I can still add headers after rendering has started.

## Usage

The example below holds the data written until it is flushed (or `end()` is called)
and then transforms it to upper case. The transform function is optional.

```
let PausingTransform = require('pausing-transform')

let pausing = new PausingTransform((chunk) => chunk.toString().toUpperCase())
pausing.pipe(res)
pausing.write('something here')
pausing.end()

```

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