Commit project
This commit is contained in:
parent
28471965a0
commit
3ac017a5ad
1030 changed files with 94062 additions and 0 deletions
29
node_modules/unzip-response/readme.md
generated
vendored
Normal file
29
node_modules/unzip-response/readme.md
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
# unzip-response [](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)
|
Loading…
Add table
Add a link
Reference in a new issue