# popsicle-content-encoding

> Popsicle middleware for supporting `Content-Encoding` compression

Latest version **1.0.0** (published 2019-06-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install popsicle-content-encoding
pnpm add popsicle-content-encoding
yarn add popsicle-content-encoding
bun add popsicle-content-encoding
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-06-11 |
| First published | 2019-06-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Blake Embrey |
| Maintainers | blakeembrey |
| Keywords | popsicle, encoding, compression, zip, brotli, gzip |

## Links

- npm: https://www.npmjs.com/package/popsicle-content-encoding
- Repository: https://github.com/serviejs/popsicle-content-encoding
- Issues: https://github.com/serviejs/popsicle-content-encoding/issues
- npm.io page: https://npm.io/package/popsicle-content-encoding

## 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.0 (latest) — 2019-06-11

## README

# Popsicle Content Encoding

[![NPM version][npm-image]][npm-url]
[![NPM downloads][downloads-image]][downloads-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]

> Popsicle middleware for supporting `Content-Encoding` compression.

## Installation

```
npm install popsicle-content-encoding --save
```

## Usage

```js
import { contentEncoding } from "popsicle-content-encoding";

const middleware = compose([contentEncoding(), transport()]);
```

Automatically populates `Accept-Encoding` based on node.js supported decompression algorithms, then decodes the matching response body. Does nothing if `Accept-Encoding` is already set.

## TypeScript

This project is written using [TypeScript](https://github.com/Microsoft/TypeScript) and publishes the definitions directly to NPM.

## License

MIT

[npm-image]: https://img.shields.io/npm/v/popsicle-content-encoding.svg?style=flat
[npm-url]: https://npmjs.org/package/popsicle-content-encoding
[downloads-image]: https://img.shields.io/npm/dm/popsicle-content-encoding.svg?style=flat
[downloads-url]: https://npmjs.org/package/popsicle-content-encoding
[travis-image]: https://img.shields.io/travis/serviejs/popsicle-content-encoding.svg?style=flat
[travis-url]: https://travis-ci.org/serviejs/popsicle-content-encoding
[coveralls-image]: https://img.shields.io/coveralls/serviejs/popsicle-content-encoding.svg?style=flat
[coveralls-url]: https://coveralls.io/r/serviejs/popsicle-content-encoding?branch=master

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