UNPKG

pnpm

Version:

Fast, disk space efficient package manager

136 lines (135 loc) • 8.02 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/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/request" ] ], "_from": "mime-types@~2.1.19", "_hasShrinkwrap": false, "_id": "mime-types@2.1.24", "_location": "/mime-types", "_nodeVersion": "8.15.1", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/mime-types_2.1.24_1555818406742_0.4628586923544964" }, "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "_npmVersion": "6.4.1", "_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.24.tgz", "_shasum": "b6f8d0b3e951efb77dedeca194cff6d16f676f81", "_shrinkwrap": null, "_spec": "mime-types@~2.1.19", "_where": "/home/zoltan/src/pnpm/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.40.0" }, "description": "The ultimate javascript content-type utility.", "devDependencies": { "eslint": "5.16.0", "eslint-config-standard": "12.0.0", "eslint-plugin-import": "2.17.2", "eslint-plugin-node": "8.0.1", "eslint-plugin-promise": "4.1.1", "eslint-plugin-standard": "4.0.0", "mocha": "6.1.4", "nyc": "14.0.0" }, "directories": {}, "dist": { "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", "shasum": "b6f8d0b3e951efb77dedeca194cff6d16f676f81", "tarball": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", "fileCount": 5, "unpackedSize": 15858, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcu+enCRA9TVsSAnZWagAAZDAP/131rZIx2LnrEtxcAVE1\ntwbiuGeMaYMICmK5M+sbC810UK7KyRpukkRs+nWlvSp4CEF5it0NcnKTDgrG\nsxhl4T1TuaYVq9T3WuI+GOP6462yBna6aZXss0obI9fS1V9h8c0K77JUK3mt\n5VATHB8jtNivRIWfUue17GZ5cj0wR528iDoLQwxhnXWm8RugwysWg+IbavVF\nampKZue/RHvOTcz8cLGdj0O4PP0niH1B3oaOCSf6JHoM7N2D+ymv843YSbLE\nGbHjfHRQ+UO5Fy8FTZNVd/6uVIW/VJJTrDqZwCuIzBCPMcEB8KKd0ZjkfVsY\nivEecHoT2BUgBBXs11CcRkUjZAesmmSMr187RO/Cot9DnosRu60dX/VW2Izb\nXyHuH8V5S61SVIOkb8GHtP9pYqYLa07qR5D1vw2kGnonBuCndkOIOYV6PXgv\n4b2OXxuHAmMY9f+HhfsKbZaHdxFcSFJ3KhvpfGyB56yl6dSz1fO0OcXhu2E1\ndLlQlWvVs8i5BtVkYXb+5Js5v5Yua4UhL5Piyz6SxogH8XTtDFQktztne5xE\nhHC7NqHIivWFjCKTSp7iDf0kaqNFwVvwaPGfcMKDp7PMb6qdwUyiSwvDAOES\n1htGf6DLsG9Q7pIXpkhfwyhCk6H1RE4v7lEKWa6wK106ygBUDccVWXw7X+dN\n32yl\r\n=h9nD\r\n-----END PGP SIGNATURE-----\r\n" }, "engines": { "node": ">= 0.6" }, "files": [ "HISTORY.md", "LICENSE", "index.js" ], "gitHead": "e5b5f41ef0d7e4e66eb9baeec7920c0cd9ec81f0", "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-version-image]][npm-url]\n[![NPM Downloads][npm-downloads-image]][npm-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.\nWhen given an extension, `mime.lookup` is used to get the matching\ncontent-type, otherwise the given content-type is used. Then if the\ncontent-type does not already have a `charset` parameter, `mime.charset`\nis used to get the default charset and add to the returned content-type.\n\n```js\nmime.contentType('markdown') // 'text/x-markdown; charset=utf-8'\nmime.contentType('file.json') // 'application/json; charset=utf-8'\nmime.contentType('text/html') // 'text/html; charset=utf-8'\nmime.contentType('text/html; charset=iso-8859-1') // 'text/html; charset=iso-8859-1'\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[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-types/master\n[coveralls-url]: https://coveralls.io/r/jshttp/mime-types?branch=master\n[node-version-image]: https://badgen.net/npm/node/mime-types\n[node-version-url]: https://nodejs.org/en/download\n[npm-downloads-image]: https://badgen.net/npm/dm/mime-types\n[npm-url]: https://npmjs.org/package/mime-types\n[npm-version-image]: https://badgen.net/npm/v/mime-types\n[travis-image]: https://badgen.net/travis/jshttp/mime-types/master\n[travis-url]: https://travis-ci.org/jshttp/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": "nyc --reporter=html --reporter=text npm test", "test-travis": "nyc --reporter=text npm test" }, "version": "2.1.24" }