UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

136 lines (135 loc) 7.73 kB
{ "_args": [ [ { "raw": "mime-types@~2.1.19", "scope": null, "escapedName": "mime-types", "name": "mime-types", "rawSpec": "~2.1.19", "spec": ">=2.1.19 <2.2.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/request" ] ], "_from": "mime-types@>=2.1.19 <2.2.0", "_id": "mime-types@2.1.20", "_inCache": true, "_location": "/mime-types", "_nodeVersion": "8.11.4", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/mime-types_2.1.20_1535321229921_0.8062784689775195" }, "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "_npmVersion": "5.6.0", "_phantomChildren": {}, "_requested": { "raw": "mime-types@~2.1.19", "scope": null, "escapedName": "mime-types", "name": "mime-types", "rawSpec": "~2.1.19", "spec": ">=2.1.19 <2.2.0", "type": "range" }, "_requiredBy": [ "/form-data", "/request" ], "_resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.20.tgz", "_shasum": "930cb719d571e903738520f8470911548ca2cc19", "_shrinkwrap": null, "_spec": "mime-types@~2.1.19", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/request", "bugs": { "url": "https://github.com/jshttp/mime-types/issues" }, "contributors": [ { "name": "Douglas Christopher Wilson", "email": "doug@somethingdoug.com" }, { "name": "Jeremiah Senkpiel", "email": "fishrock123@rocketmail.com", "url": "https://searchbeam.jit.su" }, { "name": "Jonathan Ong", "email": "me@jongleberry.com", "url": "http://jongleberry.com" } ], "dependencies": { "mime-db": "~1.36.0" }, "description": "The ultimate javascript content-type utility.", "devDependencies": { "eslint": "4.19.1", "eslint-config-standard": "11.0.0", "eslint-plugin-import": "2.13.0", "eslint-plugin-node": "6.0.1", "eslint-plugin-promise": "3.8.0", "eslint-plugin-standard": "3.1.0", "istanbul": "0.4.5", "mocha": "1.21.5" }, "directories": {}, "dist": { "integrity": "sha512-HrkrPaP9vGuWbLK1B1FfgAkbqNjIuy4eHlIYnFi7kamZyLLrGlo2mpcx0bBmNpKqBtYtAfGbodDddIgddSJC2A==", "shasum": "930cb719d571e903738520f8470911548ca2cc19", "tarball": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.20.tgz", "fileCount": 5, "unpackedSize": 14871, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbgySOCRA9TVsSAnZWagAAmgAP/0/KvhTzYKLlVNqKYS25\nm/8NWOT2ANSUzj3Z6+WuqmmeVWS7VVvmOI/2OscrQLX7nFEMicjz9DHZtCVW\nWBeLLbBEmx7cT1WOZA37jM2t+2BOz2w689YSwkasLjh9lZPZVEVvuww7248u\nQnwbxBM34ZSZFyMoaxfyotRt9KUMjsuOCTigTJscaayw+ViObrGvEK6vp6Q6\nkdTJ5oTMCo3ahS0H9VVEPU6yb3C9/5Szvp21sUOYWoJq2Rv7QXDI2R+UZzpA\n5CJetFzTXOHzyRW2eEdXpEowAaZbykn1O7Dul9nAZJLODMvNFaKXAmQNVq9Q\nqFFI0ECf77Ijg9Am5zNaeSRuujGZ351WpVzgct8gCepUgPRn1Ro302pXFKte\n/mMSFARUYA+MkdDNH8l+73byG3ipw4YN38nQd7KKyngpxirFvDvqBUg17c3+\ntBksa4PHLP0+qVHhjeL+A19bVByQHP0P+jWkpTiJSVvIgk92pPVpIjxmnuI7\nlb76ypP946/Kgrm16+o4nKCDIhGAnRYmmC8wCN8kBM7YNW7vICTOx6NwH03V\nA9zo4NCVackZxuALNrQ9p7VcMWk6Sn+NFFHov1YV6iAlA8L/rMajb19IBwnc\nSOPH2ezEd5E9wqrotB30FgPo9IDDfPJGVh55xGL69PO86m3ANZdIdSGW0RHO\ne5M2\r\n=qmfT\r\n-----END PGP SIGNATURE-----\r\n" }, "engines": { "node": ">= 0.6" }, "files": [ "HISTORY.md", "LICENSE", "index.js" ], "gitHead": "1b0f6e8b605fa83c961ef352be701e23f66cf917", "homepage": "https://github.com/jshttp/mime-types#readme", "keywords": [ "mime", "types" ], "license": "MIT", "maintainers": [ { "name": "dougwilson", "email": "doug@somethingdoug.com" }, { "name": "fishrock123", "email": "fishrock123@rocketmail.com" }, { "name": "jongleberry", "email": "jonathanrichardong@gmail.com" } ], "name": "mime-types", "optionalDependencies": {}, "readme": "# mime-types\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\nThe ultimate javascript content-type utility.\n\nSimilar to [the `mime@1.x` module](https://www.npmjs.com/package/mime), except:\n\n- __No fallbacks.__ Instead of naively returning the first available type,\n `mime-types` simply returns `false`, so do\n `var type = mime.lookup('unrecognized') || 'application/octet-stream'`.\n- No `new Mime()` business, so you could do `var lookup = require('mime-types').lookup`.\n- No `.define()` functionality\n- Bug fixes for `.lookup(path)`\n\nOtherwise, the API is compatible with `mime` 1.x.\n\n## Install\n\nThis is a [Node.js](https://nodejs.org/en/) module available through the\n[npm registry](https://www.npmjs.com/). Installation is done using the\n[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):\n\n```sh\n$ npm install mime-types\n```\n\n## Adding Types\n\nAll mime types are based on [mime-db](https://www.npmjs.com/package/mime-db),\nso open a PR there if you'd like to add mime types.\n\n## API\n\n```js\nvar mime = require('mime-types')\n```\n\nAll functions return `false` if input is invalid or not found.\n\n### mime.lookup(path)\n\nLookup the content-type associated with a file.\n\n```js\nmime.lookup('json') // 'application/json'\nmime.lookup('.md') // 'text/markdown'\nmime.lookup('file.html') // 'text/html'\nmime.lookup('folder/file.js') // 'application/javascript'\nmime.lookup('folder/.htaccess') // false\n\nmime.lookup('cats') // false\n```\n\n### mime.contentType(type)\n\nCreate a full content-type header given a content-type or extension.\n\n```js\nmime.contentType('markdown') // 'text/x-markdown; charset=utf-8'\nmime.contentType('file.json') // 'application/json; charset=utf-8'\n\n// from a full path\nmime.contentType(path.extname('/path/to/file.json')) // 'application/json; charset=utf-8'\n```\n\n### mime.extension(type)\n\nGet the default extension for a content-type.\n\n```js\nmime.extension('application/octet-stream') // 'bin'\n```\n\n### mime.charset(type)\n\nLookup the implied default charset of a content-type.\n\n```js\nmime.charset('text/markdown') // 'UTF-8'\n```\n\n### var type = mime.types[extension]\n\nA map of content-types by extension.\n\n### [extensions...] = mime.extensions[type]\n\nA map of extensions by content-type.\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/mime-types.svg\n[npm-url]: https://npmjs.org/package/mime-types\n[node-version-image]: https://img.shields.io/node/v/mime-types.svg\n[node-version-url]: https://nodejs.org/en/download/\n[travis-image]: https://img.shields.io/travis/jshttp/mime-types/master.svg\n[travis-url]: https://travis-ci.org/jshttp/mime-types\n[coveralls-image]: https://img.shields.io/coveralls/jshttp/mime-types/master.svg\n[coveralls-url]: https://coveralls.io/r/jshttp/mime-types\n[downloads-image]: https://img.shields.io/npm/dm/mime-types.svg\n[downloads-url]: https://npmjs.org/package/mime-types\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/jshttp/mime-types.git" }, "scripts": { "lint": "eslint .", "test": "mocha --reporter spec test/test.js", "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/test.js", "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot test/test.js" }, "version": "2.1.20" }