Need private packages and team management tools?Check out npm Teams »

popsicle-content-encoding

1.0.0 • Public • Published

Popsicle Content Encoding

NPM version NPM downloads Build status Test coverage

Popsicle middleware for supporting Content-Encoding compression.

Installation

npm install popsicle-content-encoding --save

Usage

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 and publishes the definitions directly to NPM.

License

MIT

Install

npm i popsicle-content-encoding

DownloadsWeekly Downloads

17,600

Version

1.0.0

License

MIT

Unpacked Size

11.8 kB

Total Files

9

Last publish

Collaborators

  • avatar