This is a comprehensive compilation of media types under the RFC-6838 protocol that may be periodically updated through the following projects: Apache, NGINX and Debian
A file's extension has no meaning on the web. In order for the client to interpret the document correctly, the media type must be sent in the Content-Type header.
Although this is a javascript module, we use a typescript interface to maintain interoperability and better readability. See: src/MediaTypes.d.ts
We strive to maintain complete code coverage in tests. With that, we provide all the necessary use cases for a good understanding of how this module works. See: test/MediaTypes.spec.js