1.1.0 • Published 11 months ago
@jadsonlucena/mediatypes v1.1.0
MediaTypes
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
What is
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.
Interface
Although this is a javascript module, we use a typescript interface to maintain interoperability and better readability. See: src/MediaTypes.d.ts
Specifications
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