# unzip-response

> Unzip a HTTP response if needed

Latest version **3.0.0** (published 2017-05-06) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install unzip-response
pnpm add unzip-response
yarn add unzip-response
bun add unzip-response
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2017-05-06 |
| First published | 2015-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 74 |
| Maintainers | sindresorhus, floatdrop |
| Keywords | http, unzip, zlib, gzip, deflate, incoming, message, response, stream |

## Links

- npm: https://www.npmjs.com/package/unzip-response
- Repository: https://github.com/sindresorhus/unzip-response
- Homepage: https://github.com/sindresorhus/unzip-response#readme
- Issues: https://github.com/sindresorhus/unzip-response/issues
- npm.io page: https://npm.io/package/unzip-response

## 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

- 3.0.0 (latest) — 2017-05-06
- 1.0.2 (1.x-branch) — 2016-11-01
- 2.0.1 — 2016-09-06
- 2.0.0 — 2016-09-06
- 1.0.1 — 2016-09-06
- 1.0.0 — 2015-07-18

## README

# unzip-response [![Build Status](https://travis-ci.org/sindresorhus/unzip-response.svg?branch=master)](https://travis-ci.org/sindresorhus/unzip-response)

> Unzip a HTTP response if needed

Unzips the response from [`http.request`](https://nodejs.org/api/http.html#http_http_request_options_callback) if it's gzipped/deflated, otherwise just passes it through.


## Install

```
$ npm install --save unzip-response
```


## Usage

```js
const http = require('http');
const unzipResponse = require('unzip-response');

http.get('http://sindresorhus.com', res => {
	res = unzipResponse(res);
});
```


## License

MIT © [Sindre Sorhus](https://sindresorhus.com)

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