-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
40 lines (40 loc) · 2.89 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"name": "compression",
"description": "Compression middleware for connect and node.js",
"version": "1.0.2",
"author": {
"name": "Jonathan Ong",
"email": "me@jongleberry.com",
"url": "http://jongleberry.com"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/expressjs/compression.git"
},
"bugs": {
"url": "https://github.com/expressjs/compression/issues"
},
"dependencies": {
"bytes": "0.3.0",
"negotiator": "0.4.3",
"compressible": "1.0.1"
},
"devDependencies": {
"supertest": "*",
"connect": "*",
"mocha": "*",
"should": "*"
},
"scripts": {
"test": "mocha --require should --reporter spec"
},
"engines": {
"node": ">= 0.8"
},
"readme": "# compression [![Build Status](https://travis-ci.org/expressjs/compression.svg)](https://travis-ci.org/expressjs/compression) [![NPM version](https://badge.fury.io/js/compression.svg)](http://badge.fury.io/js/compression)\n\nNode.js compression middleware.\n\n## API\n\n```js\nvar express = require('express')\nvar compress = require('compression')\n\nvar app = express()\napp.use(compress())\n```\n\n### compress(options)\n\nReturns the compression middleware using the given `options`.\n\n```js\napp.use(compress({\n threshhold: 512\n}))\n```\n\n#### Options\n\n- `threshold` `<1kb>` - response is only compressed if the byte size is at or above this threshold.\n- `filter` - a filtering callback function. Uses [Compressible](https://github.com/expressjs/compressible) by default.\n\nIn addition to these, [zlib](http://nodejs.org/api/zlib.html) options may be passed in to the options object.\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Jonathan Ong me@jongleberry.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n",
"readmeFilename": "README.md",
"homepage": "https://github.com/expressjs/compression",
"_id": "compression@1.0.2",
"_from": "compression@1.0.2"
}