Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

compressible

Package Overview
Dependencies
Maintainers
7
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compressible - npm Package Compare versions

Comparing version 2.0.6 to 2.0.7

5

HISTORY.md

@@ -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 @@ ==================

2

index.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc