package.json 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. "name": "mime-db",
  3. "description": "Media Type Database",
  4. "version": "1.7.0",
  5. "author": {
  6. "name": "Jonathan Ong",
  7. "email": "me@jongleberry.com",
  8. "url": "http://jongleberry.com"
  9. },
  10. "contributors": [
  11. {
  12. "name": "Douglas Christopher Wilson",
  13. "email": "doug@somethingdoug.com"
  14. },
  15. {
  16. "name": "Robert Kieffer",
  17. "email": "robert@broofa.com",
  18. "url": "http://github.com/broofa"
  19. }
  20. ],
  21. "license": "MIT",
  22. "keywords": [
  23. "mime",
  24. "db",
  25. "type",
  26. "types",
  27. "database",
  28. "charset",
  29. "charsets"
  30. ],
  31. "repository": {
  32. "type": "git",
  33. "url": "git://github.com/jshttp/mime-db"
  34. },
  35. "devDependencies": {
  36. "co": "4",
  37. "cogent": "1",
  38. "csv-parse": "0",
  39. "gnode": "0.1.0",
  40. "istanbul": "0.3.5",
  41. "mocha": "~1.21.4",
  42. "raw-body": "~1.3.2",
  43. "stream-to-array": "2"
  44. },
  45. "files": [
  46. "HISTORY.md",
  47. "LICENSE",
  48. "README.md",
  49. "db.json",
  50. "index.js"
  51. ],
  52. "engines": {
  53. "node": ">= 0.6"
  54. },
  55. "scripts": {
  56. "build": "node scripts/build",
  57. "fetch": "gnode scripts/extensions && gnode scripts/types",
  58. "test": "mocha --reporter spec --bail --check-leaks test/",
  59. "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
  60. "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
  61. "update": "npm run fetch && npm run build"
  62. },
  63. "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\n## Installation\n\n```bash\nnpm install mime-db\n```\n\nIf you're crazy enough to use this in the browser,\nyou can just grab the JSON file:\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- `.extensions[]` - known extensions associated with this mime type.\n- `.compressible` - whether a file of this type is 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\nTo update the build, run `npm run update`.\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?style=flat\n[npm-downloads-image]: https://img.shields.io/npm/dm/mime-db.svg?style=flat\n[npm-url]: https://npmjs.org/package/mime-db\n[travis-image]: https://img.shields.io/travis/jshttp/mime-db.svg?style=flat\n[travis-url]: https://travis-ci.org/jshttp/mime-db\n[coveralls-image]: https://img.shields.io/coveralls/jshttp/mime-db.svg?style=flat\n[coveralls-url]: https://coveralls.io/r/jshttp/mime-db?branch=master\n[node-image]: https://img.shields.io/node/v/mime-db.svg?style=flat\n[node-url]: http://nodejs.org/download/\n",
  64. "readmeFilename": "README.md",
  65. "bugs": {
  66. "url": "https://github.com/jshttp/mime-db/issues"
  67. },
  68. "homepage": "https://github.com/jshttp/mime-db",
  69. "_id": "mime-db@1.7.0",
  70. "_shasum": "36cf66a6c52ea71827bde287f77c254f5ef1b8d3",
  71. "_from": "mime-db@~1.7.0",
  72. "_resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.7.0.tgz"
  73. }