# zlib-browserify

> Wrapper for zlib.js to allow for browserifyication

Latest version **0.0.3** (published 2013-10-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install zlib-browserify
pnpm add zlib-browserify
yarn add zlib-browserify
bun add zlib-browserify
```

## 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.3 |
| Published | 2013-10-01 |
| First published | 2013-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 32 |
| Author | Brian J. Brennan |
| Maintainers | brianloveswords |
| Keywords | zlib, browserify |

## Links

- npm: https://www.npmjs.com/package/zlib-browserify
- Repository: https://github.com/brianloveswords/zlib-browserify
- Issues: https://github.com/brianloveswords/zlib-browserify/issues
- npm.io page: https://npm.io/package/zlib-browserify

## Dependencies (1)

- [tape](https://npm.io/package/tape.md) ~0.2.2

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2013-10-01
- 0.0.2 — 2013-09-30
- 0.0.1 — 2013-01-22

## README

# zlib-browserify [![Build Status](https://travis-ci.org/brianloveswords/zlib-browserify.png?branch=master)](https://travis-ci.org/brianloveswords/zlib-browserify)

Zlib in yo' browser.

# What is this?

This is a very small wrapper for https://github.com/imaya/zlib.js. Fixes
some very minor API inconsistencies. Only implements `inflate`,
`deflate`, `gzip` and `gunzip` so if you're doing anything extra fancy
you're out of luck for now.

# Run tests

```bash
$ npm test
```

# Test methodology (a.k.a, "why doesn't the output match node's zlib?")

(zlibA = native, zlibB = browserified)

Pretending these are sync, I do the following to test:

```js
assert(zlibB.inflate(zlibA.deflate('test')) === "test");
assert(zlibA.inflate(zlibB.deflate('test')) === "test");
...
```

and so on for each of the methods supported. Note, I do **not** do 

```js
assert(zlibA.deflate('test') === zlibB.deflate('test'));
```

Because node's deflate and the imaya's version do not seem to use the
same defaults for compression level. I haven't figured out how to change
it yet. Anyway, rest assured, while `deflate` does not return the same
output, this is fully interoperable with node's native zlib.

# License

MIT

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