UNPKG

pnpm

Version:

Fast, disk space efficient package manager

147 lines (146 loc) • 8.5 kB
{ "_args": [ [ { "raw": "mime-db@1.40.0", "scope": null, "escapedName": "mime-db", "name": "mime-db", "rawSpec": "1.40.0", "spec": "1.40.0", "type": "version" }, "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/mime-types" ] ], "_from": "mime-db@1.40.0", "_hasShrinkwrap": false, "_id": "mime-db@1.40.0", "_location": "/mime-db", "_nodeVersion": "8.15.1", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/mime-db_1.40.0_1555811905445_0.9439157872850141" }, "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "_npmVersion": "6.4.1", "_phantomChildren": {}, "_requested": { "raw": "mime-db@1.40.0", "scope": null, "escapedName": "mime-db", "name": "mime-db", "rawSpec": "1.40.0", "spec": "1.40.0", "type": "version" }, "_requiredBy": [ "/mime-types" ], "_resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", "_shasum": "a65057e998db090f732a68f6c276d387d4126c32", "_shrinkwrap": null, "_spec": "mime-db@1.40.0", "_where": "/home/zoltan/src/pnpm/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.4", "co": "4.6.0", "cogent": "1.0.1", "csv-parse": "4.3.4", "eslint": "5.16.0", "eslint-config-standard": "12.0.0", "eslint-plugin-import": "2.16.0", "eslint-plugin-node": "8.0.1", "eslint-plugin-promise": "4.1.1", "eslint-plugin-standard": "4.0.0", "gnode": "0.1.2", "mocha": "6.1.4", "nyc": "14.0.0", "raw-body": "2.3.3", "stream-to-array": "2.3.0" }, "directories": {}, "dist": { "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", "shasum": "a65057e998db090f732a68f6c276d387d4126c32", "tarball": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", "fileCount": 6, "unpackedSize": 188118, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcu85CCRA9TVsSAnZWagAAkIgP/0HkS+apHdnFdPS9Ot0O\nZlWuptzHDU6koytz+3esAgaFYYOWQa6xN4OQbQs61B2XoKNZWxKQdkMD/+zf\nLQvx9wWDic7Xaj1MpijO5Ur0OEzJEh9ZW3S3eWHc5gDKPTcyofY+l3mBGo6R\n2/scHJr3l3gBK3BJyQZYhxL7EEEt5RGeQkcHAfGvfKH6iw4UzRWSHlIJxpJq\ngdTg2cmJgtGy0ThBnuLDk/QG3DG2lZL0NnI3Qtwt5PhLqlQ1mEeMx+fBHGEc\nyHH9fWaJUh/cm/a0kzvoGpu259QMOiLwuZfSkBV3v7udap69Q1MdqnViU+HL\nXaDfT28J/kSsqrddkwIisNw2Zxi/3bGcB3LcZHuoWhkaYMf2rzweX/rMApI7\nOijY5ze0i7PhCbsGoy7ichT8PKbgyDdc415t4M8CubPkfG6RA65dpR+NDjVn\n88h9g0S98pEVa/yMEZOIXRPPE4MHcWJ1QRlwjl4mxyH461AakWMTeNbAKk6Y\n4ZSDzTVPeVsz/1uaSHryagS/istatuoRit3PBJWsMI3F8gEA+aEHYDFimBCH\n8gpn4j5xfkdiwtNGuvJO22PxBqCHrDCppoxJyUEzFHlbWFiLvtwWy7h+FtYs\nNAKtGQLkQjET+DvyC15QSwJainaZ1ZzDVNlY7CprPoSihm3eO8G1rBI9DVbC\nSKXu\r\n=T/db\r\n-----END PGP SIGNATURE-----\r\n" }, "engines": { "node": ">= 0.6" }, "files": [ "HISTORY.md", "LICENSE", "README.md", "db.json", "index.js" ], "gitHead": "4db92114124a76a38bf29b7d572d4c7da33a1261", "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 [jsDelivr](https://www.jsdelivr.com/). It is recommended to\nreplace `master` with [a release tag](https://github.com/jshttp/mime-db/tags)\nas the JSON format may change in the future.\n\n```\nhttps://cdn.jsdelivr.net/gh/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[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-db/master\n[coveralls-url]: https://coveralls.io/r/jshttp/mime-db?branch=master\n[node-image]: https://badgen.net/npm/node/mime-db\n[node-url]: https://nodejs.org/en/download\n[npm-downloads-image]: https://badgen.net/npm/dm/mime-db\n[npm-url]: https://npmjs.org/package/mime-db\n[npm-version-image]: https://badgen.net/npm/v/mime-db\n[travis-image]: https://badgen.net/travis/jshttp/mime-db/master\n[travis-url]: https://travis-ci.org/jshttp/mime-db\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": "node scripts/version-history.js && git add HISTORY.md" }, "version": "1.40.0" }