compressible
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -0,1 +1,6 @@ | ||
2.0.7 / 2016-01-18 | ||
================== | ||
* deps: mime-db@'>= 1.21.0 < 2' | ||
2.0.6 / 2015-09-29 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -38,3 +38,3 @@ /*! | ||
* @return {Boolean} compressible | ||
& @public | ||
* @public | ||
*/ | ||
@@ -41,0 +41,0 @@ |
{ | ||
"name": "compressible", | ||
"description": "Compressible Content-Type / mime checking", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"contributors": [ | ||
"Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)", | ||
@@ -18,6 +19,6 @@ "Jeremiah Senkpiel <fishrock123@rocketmail.com> (https://searchbeam.jit.su)" | ||
"dependencies": { | ||
"mime-db": ">= 1.19.0 < 2" | ||
"mime-db": ">= 1.21.0 < 2" | ||
}, | ||
"devDependencies": { | ||
"istanbul": "0.3.21", | ||
"istanbul": "0.4.2", | ||
"mocha": "~1.21.5" | ||
@@ -24,0 +25,0 @@ }, |
@@ -11,3 +11,3 @@ # compressible | ||
### Installation | ||
## Installation | ||
@@ -20,9 +20,12 @@ ```bash | ||
```js | ||
var compressible = require('compressible') | ||
``` | ||
### compressible(type) | ||
Checks if the given content-type is compressible. | ||
Checks if the given `Content-Type` is compressible. The `type` argument is expected | ||
to be a value MIME type or `Content-Type` string, though no validation is performed. | ||
```js | ||
var compressible = require('compressible') | ||
compressible('text/html') // => true | ||
@@ -32,8 +35,10 @@ compressible('image/png') // => false | ||
## [MIT Licensed](LICENSE) | ||
## License | ||
[MIT](LICENSE) | ||
[npm-image]: https://img.shields.io/npm/v/compressible.svg | ||
[npm-url]: https://npmjs.org/package/compressible | ||
[node-version-image]: https://img.shields.io/node/v/compressible.svg | ||
[node-version-url]: http://nodejs.org/download/ | ||
[node-version-url]: https://nodejs.org/en/download/ | ||
[travis-image]: https://img.shields.io/travis/jshttp/compressible/master.svg | ||
@@ -40,0 +45,0 @@ [travis-url]: https://travis-ci.org/jshttp/compressible |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5519
47
Updatedmime-db@>= 1.21.0 < 2