Comparing version 1.6.0 to 1.6.1
@@ -0,1 +1,6 @@ | ||
1.6.1 / 2015-02-05 | ||
================== | ||
* Community extensions ownership transferred from `node-mime` | ||
1.6.0 / 2015-01-29 | ||
@@ -2,0 +7,0 @@ ================== |
{ | ||
"name": "mime-db", | ||
"description": "Media Type Database", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)", | ||
"contributors": [ | ||
"Douglas Christopher Wilson <doug@somethingdoug.com>" | ||
"Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
"Robert Kieffer <robert@broofa.com> (http://github.com/broofa)" | ||
], | ||
@@ -9,0 +10,0 @@ "license": "MIT", |
@@ -10,4 +10,4 @@ # mime-db | ||
This is a database of all mime types. | ||
It consistents of a single, public JSON file and does not include any logic, | ||
allowing it to remain as unopinionated as possible with an API. | ||
It consists of a single, public JSON file and does not include any logic, | ||
allowing it to remain as un-opinionated as possible with an API. | ||
It aggregates data from the following sources: | ||
@@ -18,8 +18,17 @@ | ||
## Usage | ||
## Installation | ||
```bash | ||
npm i mime-db | ||
npm install mime-db | ||
``` | ||
If you're crazy enough to use this in the browser, | ||
you can just grab the JSON file: | ||
``` | ||
https://cdn.rawgit.com/jshttp/mime-db/master/db.json | ||
``` | ||
## Usage | ||
```js | ||
@@ -32,9 +41,2 @@ var db = require('mime-db'); | ||
If you're crazy enough to use this in the browser, | ||
you can just grab the JSON file: | ||
``` | ||
https://cdn.rawgit.com/jshttp/mime-db/master/db.json | ||
``` | ||
## Data Structure | ||
@@ -67,2 +69,9 @@ | ||
## Adding Custom Media Types | ||
The best way to get new media types included in this library is to register | ||
them with the IANA. The community registration procedure is outlined in | ||
[RFC 6838 section 5](http://tools.ietf.org/html/rfc6838#section-5). Types | ||
registered with the IANA are automatically pulled into this library. | ||
[npm-version-image]: https://img.shields.io/npm/v/mime-db.svg?style=flat | ||
@@ -69,0 +78,0 @@ [npm-downloads-image]: https://img.shields.io/npm/dm/mime-db.svg?style=flat |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146207
82