# tiny-inflate

> A tiny inflate implementation

Latest version **1.0.3** (published 2019-11-17) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-11-17 |
| First published | 2015-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 42 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 52 |
| Author | Devon Govett |
| Maintainers | devongovett |
| Keywords | inflate, zlib, gzip, zip |

## Links

- npm: https://www.npmjs.com/package/tiny-inflate
- Repository: https://github.com/devongovett/tiny-inflate
- Issues: https://github.com/devongovett/tiny-inflate/issues
- npm.io page: https://npm.io/package/tiny-inflate

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2019-11-17
- 1.0.2 — 2015-12-15
- 1.0.1 — 2015-02-15
- 1.0.0 — 2015-02-15

## README

# tiny-inflate

This is a port of Joergen Ibsen's [tiny inflate](https://bitbucket.org/jibsen/tinf) to JavaScript.
Minified it is about 3KB, or 1.3KB gzipped. While being very small, it is also reasonably fast
(about 30% - 50% slower than [pako](https://github.com/nodeca/pako) on average), and should be 
good enough for many applications. If you need the absolute best performance, however, you'll
need to use a larger library such as pako that contains additional optimizations.

## Installation

    npm install tiny-inflate

## Example

To use tiny-inflate, you need two things: a buffer of data compressed with deflate,
and the decompressed size (often stored in a file header) to allocate your output buffer.
Input and output buffers can be either node `Buffer`s, or `Uint8Array`s.

```javascript
var inflate = require('tiny-inflate');

var compressedBuffer = new Bufer([ ... ]);
var decompressedSize = ...;
var outputBuffer = new Buffer(decompressedSize);

inflate(compressedBuffer, outputBuffer);
```

## License

MIT

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