Skip to content

Commit 141c3b5

Browse files
committed
docs: improve documentation around adding media types
1 parent 9a1c319 commit 141c3b5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,19 @@ and the values being an object with the following keys:
7676

7777
To update the build, run `npm run build`.
7878

79-
## Adding Custom Media Types
79+
### Adding Custom Media Types
8080

8181
The best way to get new media types included in this library is to register
8282
them with the IANA. The community registration procedure is outlined in
8383
[RFC 6838 section 5](http://tools.ietf.org/html/rfc6838#section-5). Types
8484
registered with the IANA are automatically pulled into this library.
8585

86+
If that is not possible / feasible, they can be added directly here as a
87+
"custom" type. To do this, it is required to have a primary source that
88+
definitively lists the media type. If an extension is going to be listed as
89+
associateed with this media type, the source must definitively link the
90+
media type and extension as well.
91+
8692
[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-db/master
8793
[coveralls-url]: https://coveralls.io/r/jshttp/mime-db?branch=master
8894
[node-image]: https://badgen.net/npm/node/mime-db

0 commit comments

Comments
 (0)