{ "_args": [ [ { "raw": "compressible@~2.0.5", "scope": null, "escapedName": "compressible", "name": "compressible", "rawSpec": "~2.0.5", "spec": ">=2.0.5 <2.1.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/compression" ] ], "_from": "compressible@>=2.0.5 <2.1.0", "_id": "compressible@2.0.12", "_inCache": true, "_location": "/compressible", "_nodeVersion": "6.11.1", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/compressible-2.0.12.tgz_1508543757843_0.14214342553168535" }, "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "_npmVersion": "3.10.10", "_phantomChildren": {}, "_requested": { "raw": "compressible@~2.0.5", "scope": null, "escapedName": "compressible", "name": "compressible", "rawSpec": "~2.0.5", "spec": ">=2.0.5 <2.1.0", "type": "range" }, "_requiredBy": [ "/compression" ], "_resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.12.tgz", "_shasum": "c59a5c99db76767e9876500e271ef63b3493bd66", "_shrinkwrap": null, "_spec": "compressible@~2.0.5", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/compression", "bugs": { "url": "https://github.com/jshttp/compressible/issues" }, "contributors": [ { "name": "Douglas Christopher Wilson", "email": "doug@somethingdoug.com" }, { "name": "Jonathan Ong", "email": "me@jongleberry.com", "url": "http://jongleberry.com" }, { "name": "Jeremiah Senkpiel", "email": "fishrock123@rocketmail.com", "url": "https://searchbeam.jit.su" } ], "dependencies": { "mime-db": ">= 1.30.0 < 2" }, "description": "Compressible Content-Type / mime checking", "devDependencies": { "eslint": "3.19.0", "eslint-config-standard": "10.2.1", "eslint-plugin-import": "2.7.0", "eslint-plugin-markdown": "1.0.0-beta.6", "eslint-plugin-node": "5.2.0", "eslint-plugin-promise": "3.6.0", "eslint-plugin-standard": "3.0.1", "mocha": "~1.21.5", "nyc": "11.2.1" }, "directories": {}, "dist": { "shasum": "c59a5c99db76767e9876500e271ef63b3493bd66", "tarball": "https://registry.npmjs.org/compressible/-/compressible-2.0.12.tgz" }, "engines": { "node": ">= 0.6" }, "files": [ "HISTORY.md", "LICENSE", "README.md", "index.js" ], "gitHead": "07919d9b158879909404d3f942b777dbf47d2788", "homepage": "https://github.com/jshttp/compressible#readme", "keywords": [ "compress", "gzip", "mime", "content-type" ], "license": "MIT", "maintainers": [ { "name": "jongleberry", "email": "jonathanrichardong@gmail.com" }, { "name": "fishrock123", "email": "fishrock123@rocketmail.com" }, { "name": "dougwilson", "email": "doug@somethingdoug.com" } ], "name": "compressible", "optionalDependencies": {}, "readme": "# compressible\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Node.js Version][node-version-image]][node-version-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n\nCompressible `Content-Type` / `mime` checking.\n\n## Installation\n\n```sh\n$ npm install compressible\n```\n\n## API\n\n\n\n```js\nvar compressible = require('compressible')\n```\n\n### compressible(type)\n\nChecks if the given `Content-Type` is compressible. The `type` argument is expected\nto be a value MIME type or `Content-Type` string, though no validation is performed.\n\nThe MIME is looked up in the [`mime-db`](https://www.npmjs.com/package/mime-db) and\nif there is compressible information in the database entry, that is returned. Otherwise,\nthis module will fallback to `true` for the following types:\n\n * `text/*`\n * `*/*+json`\n * `*/*+text`\n * `*/*+xml`\n\nIf this module is not sure if a type is specifically compressible or specifically\nuncompressible, `undefined` is returned.\n\n\n\n```js\ncompressible('text/html') // => true\ncompressible('image/png') // => false\n```\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/compressible.svg\n[npm-url]: https://npmjs.org/package/compressible\n[node-version-image]: https://img.shields.io/node/v/compressible.svg\n[node-version-url]: https://nodejs.org/en/download/\n[travis-image]: https://img.shields.io/travis/jshttp/compressible/master.svg\n[travis-url]: https://travis-ci.org/jshttp/compressible\n[coveralls-image]: https://img.shields.io/coveralls/jshttp/compressible/master.svg\n[coveralls-url]: https://coveralls.io/r/jshttp/compressible?branch=master\n[downloads-image]: https://img.shields.io/npm/dm/compressible.svg\n[downloads-url]: https://npmjs.org/package/compressible\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/jshttp/compressible.git" }, "scripts": { "lint": "eslint --plugin markdown --ext js,md .", "test": "mocha --reporter spec --bail --check-leaks test/", "test-cov": "nyc --reporter=html --reporter=text npm test", "test-travis": "nyc --reporter=text npm test" }, "version": "2.0.12" }