84 packages found
Create and parse HTTP Content-Type header
Compressible Content-Type / mime checking
Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard
Database to mime-format based on content-type header and content
Get the content charset from header and html content-type.
Class for parsing, stringifying and manipulating media types. Useful for content negotiation. Follows RFC2045, supports quoted parameters, all allowed characters etc.
Helper to handle migrations in contentful
A helper for combating incorrect content-type, aka a mime sniffing module for node.js
Simple class to get the content-type from a file given
An Express middleware to override the `content-type` header of the request.
HTTP Content-* headers parsing
Parse HTTP request body according its content type
detect-content-type implements the algorithm described at http://mimesniff.spec.whatwg.org/ to determine the Content-Type of the given data. It considers at most the first 512 bytes of data. It always returns a valid MIME type: if it cannot determine a mo
Express middleware for blocking unwanted Content-Type(s).
Lookups correct MIME content-type for specified path and return it as a string
Express middleware to (automatically) render content and errors to content-type
Create a full Content-Type header given a MIME type or extension and catch the result
hint for media types (f.k.a. MIME types) related best practices
Middleware to override accept header with query or url path file extension