popsicle-content-encoding
Popsicle middleware for supporting `Content-Encoding` compression
Last updated 7 years ago by blakeembrey .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install popsicle-content-encoding 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (7 years ago)

1 Versions

  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (12)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |