UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

146 lines (145 loc) 8.47 kB
{ "_args": [ [ { "raw": "mime-db@~1.36.0", "scope": null, "escapedName": "mime-db", "name": "mime-db", "rawSpec": "~1.36.0", "spec": ">=1.36.0 <1.37.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/mime-types" ] ], "_from": "mime-db@>=1.36.0 <1.37.0", "_id": "mime-db@1.36.0", "_inCache": true, "_location": "/mime-db", "_nodeVersion": "8.11.4", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/mime-db_1.36.0_1534778710007_0.7707137096744558" }, "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "_npmVersion": "5.6.0", "_phantomChildren": {}, "_requested": { "raw": "mime-db@~1.36.0", "scope": null, "escapedName": "mime-db", "name": "mime-db", "rawSpec": "~1.36.0", "spec": ">=1.36.0 <1.37.0", "type": "range" }, "_requiredBy": [ "/mime-types" ], "_resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.36.0.tgz", "_shasum": "5020478db3c7fe93aad7bbcc4dcf869c43363397", "_shrinkwrap": null, "_spec": "mime-db@~1.36.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/mime-types", "bugs": { "url": "https://github.com/jshttp/mime-db/issues" }, "contributors": [ { "name": "Douglas Christopher Wilson", "email": "doug@somethingdoug.com" }, { "name": "Jonathan Ong", "email": "me@jongleberry.com", "url": "http://jongleberry.com" }, { "name": "Robert Kieffer", "email": "robert@broofa.com", "url": "http://github.com/broofa" } ], "dependencies": {}, "description": "Media Type Database", "devDependencies": { "bluebird": "3.5.1", "co": "4.6.0", "cogent": "1.0.1", "csv-parse": "2.5.0", "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", "gnode": "0.1.2", "mocha": "1.21.5", "nyc": "11.8.0", "raw-body": "2.3.3", "stream-to-array": "2.3.0" }, "directories": {}, "dist": { "integrity": "sha512-L+xvyD9MkoYMXb1jAmzI/lWYAxAMCPvIBSWur0PZ5nOf5euahRLVqH//FKW9mWp2lkqUgYiXPgkzfMUFi4zVDw==", "shasum": "5020478db3c7fe93aad7bbcc4dcf869c43363397", "tarball": "https://registry.npmjs.org/mime-db/-/mime-db-1.36.0.tgz", "fileCount": 6, "unpackedSize": 183662, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbet1WCRA9TVsSAnZWagAAJN0QAKPc2EF8RzEB4aqN05Q7\nSTdLSmPgU72pGFXE3mP7qRNd0qXdawCZfRIirnbVkC9gIEAVf0E41GiIcMIu\nTH/G5lndkLj3DIvxlXAWgXl/EoVJrxe05aWK0gzJupECXWipBpK2WLqit5yb\noxBYDs00nnoMvdbp/mNinl+YbptjJKWaLH+f/MldtoUTkMQvPBhkCP0IZoTM\nLKD2JQJYZYRDUyFU0cN1OmdOKBKFf7noYJ8TukZnFOPQSbiW3bdOXYi8AZO9\nrmZ7aeTFwPz1+YD/PtljE1DpnLI4ky+PP1oonoPh2KRwK2+pNitp9hpsltzm\nbgt9rLLaecngzqKoKGggaE0q2Y0NAwS2MohGMqMyEvUtEuH86wo1Fcaf694F\nEAM0sMRJ0gPHepdkTrX/80W3QF+n3gxE93jxN5dpBbyfmmJXfE5S6V+EhkrP\nzH5gYtR6NIT4cyuvl7RO2oaTDYiWq1+j1t00f/a0a2+tmH2A0fJ5H11Dbq1F\nm/N8Ynh185zGIbrhwFTTpaBQDybzPcngQFX++Ex8NJw9d40GiyURfsPxtuVR\n/uBN9Qb09ueHuQRl1aXlIGroLxxgkPpUzJeR1cVhSrExqV/0LIyM1muKApUa\nPzXRPdn9s+zXdBqYrzPJzsqoaHfliyVEsuSoMWqZJYP/en9LqeShK9PtOU8T\nEaXI\r\n=Vqm0\r\n-----END PGP SIGNATURE-----\r\n" }, "engines": { "node": ">= 0.6" }, "files": [ "HISTORY.md", "LICENSE", "README.md", "db.json", "index.js" ], "gitHead": "dd02f32bbd23cc2c081888754a5c1b688c6e9ebb", "homepage": "https://github.com/jshttp/mime-db#readme", "keywords": [ "mime", "db", "type", "types", "database", "charset", "charsets" ], "license": "MIT", "maintainers": [ { "name": "dougwilson", "email": "doug@somethingdoug.com" }, { "name": "jongleberry", "email": "jonathanrichardong@gmail.com" } ], "name": "mime-db", "optionalDependencies": {}, "readme": "# mime-db\n\n[![NPM Version][npm-version-image]][npm-url]\n[![NPM Downloads][npm-downloads-image]][npm-url]\n[![Node.js Version][node-image]][node-url]\n[![Build Status][travis-image]][travis-url]\n[![Coverage Status][coveralls-image]][coveralls-url]\n\nThis is a database of all mime types.\nIt consists of a single, public JSON file and does not include any logic,\nallowing it to remain as un-opinionated as possible with an API.\nIt aggregates data from the following sources:\n\n- http://www.iana.org/assignments/media-types/media-types.xhtml\n- http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types\n- http://hg.nginx.org/nginx/raw-file/default/conf/mime.types\n\n## Installation\n\n```bash\nnpm install mime-db\n```\n\n### Database Download\n\nIf you're crazy enough to use this in the browser, you can just grab the\nJSON file using [RawGit](https://rawgit.com/). It is recommended to replace\n`master` with [a release tag](https://github.com/jshttp/mime-db/tags) as the\nJSON format may change in the future.\n\n```\nhttps://cdn.rawgit.com/jshttp/mime-db/master/db.json\n```\n\n## Usage\n\n```js\nvar db = require('mime-db');\n\n// grab data on .js files\nvar data = db['application/javascript'];\n```\n\n## Data Structure\n\nThe JSON file is a map lookup for lowercased mime types.\nEach mime type has the following properties:\n\n- `.source` - where the mime type is defined.\n If not set, it's probably a custom media type.\n - `apache` - [Apache common media types](http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types)\n - `iana` - [IANA-defined media types](http://www.iana.org/assignments/media-types/media-types.xhtml)\n - `nginx` - [nginx media types](http://hg.nginx.org/nginx/raw-file/default/conf/mime.types)\n- `.extensions[]` - known extensions associated with this mime type.\n- `.compressible` - whether a file of this type can be gzipped.\n- `.charset` - the default charset associated with this type, if any.\n\nIf unknown, every property could be `undefined`.\n\n## Contributing\n\nTo edit the database, only make PRs against `src/custom.json` or\n`src/custom-suffix.json`.\n\nThe `src/custom.json` file is a JSON object with the MIME type as the keys\nand the values being an object with the following keys:\n\n- `compressible` - leave out if you don't know, otherwise `true`/`false` to\n indicate whether the data represented by the type is typically compressible.\n- `extensions` - include an array of file extensions that are associated with\n the type.\n- `notes` - human-readable notes about the type, typically what the type is.\n- `sources` - include an array of URLs of where the MIME type and the associated\n extensions are sourced from. This needs to be a [primary source](https://en.wikipedia.org/wiki/Primary_source);\n links to type aggregating sites and Wikipedia are _not acceptable_.\n\nTo update the build, run `npm run build`.\n\n## Adding Custom Media Types\n\nThe best way to get new media types included in this library is to register\nthem with the IANA. The community registration procedure is outlined in\n[RFC 6838 section 5](http://tools.ietf.org/html/rfc6838#section-5). Types\nregistered with the IANA are automatically pulled into this library.\n\n[npm-version-image]: https://img.shields.io/npm/v/mime-db.svg\n[npm-downloads-image]: https://img.shields.io/npm/dm/mime-db.svg\n[npm-url]: https://npmjs.org/package/mime-db\n[travis-image]: https://img.shields.io/travis/jshttp/mime-db/master.svg\n[travis-url]: https://travis-ci.org/jshttp/mime-db\n[coveralls-image]: https://img.shields.io/coveralls/jshttp/mime-db/master.svg\n[coveralls-url]: https://coveralls.io/r/jshttp/mime-db?branch=master\n[node-image]: https://img.shields.io/node/v/mime-db.svg\n[node-url]: https://nodejs.org/en/download/\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/jshttp/mime-db.git" }, "scripts": { "build": "node scripts/build", "fetch": "node scripts/fetch-apache && gnode scripts/fetch-iana && node scripts/fetch-nginx", "lint": "eslint .", "test": "mocha --reporter spec --bail --check-leaks test/", "test-cov": "nyc --reporter=html --reporter=text npm test", "test-travis": "nyc --reporter=text npm test", "update": "npm run fetch && npm run build" }, "version": "1.36.0" }