compression
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -0,1 +1,9 @@ | ||
1.3.1 / 2015-01-31 | ||
================== | ||
* deps: accepts@~1.2.3 | ||
- deps: mime-types@~2.0.8 | ||
* deps: compressible@~2.0.2 | ||
- deps: mime-db@'>= 1.1.2 < 2' | ||
1.3.0 / 2014-12-30 | ||
@@ -2,0 +10,0 @@ ================== |
{ | ||
"name": "compression", | ||
"description": "Compression middleware for connect and node.js", | ||
"version": "1.3.0", | ||
"description": "Node.js compression middleware", | ||
"version": "1.3.1", | ||
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)", | ||
@@ -12,5 +12,5 @@ "contributors": [ | ||
"dependencies": { | ||
"accepts": "~1.2.2", | ||
"accepts": "~1.2.3", | ||
"bytes": "1.0.0", | ||
"compressible": "~2.0.1", | ||
"compressible": "~2.0.2", | ||
"debug": "~2.1.1", | ||
@@ -17,0 +17,0 @@ "on-headers": "~1.0.0", |
@@ -49,2 +49,26 @@ # compression | ||
##### level | ||
The level of zlib compression to apply to responses. A higher level will result | ||
in better compression, but will take longer to complete. A lower level will | ||
result in less compression, but will be much faster. | ||
This is an integer in the range of `0` (no compression) to `9` (maximum | ||
compression). The special value `-1` can be used to mean the "default | ||
compression level". | ||
- `-1` Default compression level (also `zlib.Z_DEFAULT_COMPRESSION`). | ||
- `0` No compression (also `zlib.Z_NO_COMPRESSION`). | ||
- `1` Fastest compression (also `zlib.Z_BEST_SPEED`). | ||
- `2` | ||
- `3` | ||
- `4` | ||
- `5` | ||
- `6` | ||
- `7` | ||
- `8` | ||
- `9` Best compression (also `zlib.Z_BEST_COMPRESSION`). | ||
**Note** in the list above, `zlib` is from `zlib = require('zlib')`. | ||
##### threshold | ||
@@ -96,3 +120,3 @@ | ||
// add alll routes | ||
// add all routes | ||
``` | ||
@@ -99,0 +123,0 @@ |
14553
174
Updatedaccepts@~1.2.3
Updatedcompressible@~2.0.2