# inflate

> pure javascript inflate implemented as a through stream

Latest version **0.0.7** (published 2013-07-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install inflate
pnpm add inflate
yarn add inflate
bun add inflate
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2013-07-01 |
| First published | 2013-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 34 |
| Author | Chris Dickinson |
| Maintainers | chrisdickinson |
| Keywords | inflate, zlib, stream, through |

## Links

- npm: https://www.npmjs.com/package/inflate
- Repository: https://github.com/chrisdickinson/inflate
- npm.io page: https://npm.io/package/inflate

## Dependencies (2)

- [bops](https://npm.io/package/bops.md) ~0.0.6
- [through](https://npm.io/package/through.md) ~2.2.7

## 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

- 0.0.7 (latest) — 2013-07-01
- 0.0.6 — 2013-05-27
- 0.0.5 — 2013-05-10
- 0.0.4 — 2013-05-06
- 0.0.3 — 2013-05-04
- 0.0.2 — 2013-04-22
- 0.0.1 — 2013-04-22

## README

# inflate

streaming inflate in pure javascript (as a [through](http://npm.im/through) stream).

the source code [is annotated](http://didact.us/inflate/). be forewarned, it is full of
bats and rusty nails and goblins and things.

```javascript
var inflate = require('inflate')

your_input
  .pipe(inflate())
  .on('unused', function(unused_buffer, num_bytes_read) {

  })
  .pipe(your_output)

```

## API

#### inflate() -> inflate stream

create an inflate stream. each inflate stream carries a 32k memory overhead (for the window).

#### inflate.recycle() -> inflate stream

create a new inflate stream that recycles the output window (and JIT warmup) from the previous
inflate stream.

## history

[here's the starting point, and then an intermediate point on the way to this package.](https://gist.github.com/chrisdickinson/a5feecd1906b15638d50)

## License

MIT

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