78 packages found
Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard
Create and parse HTTP Content-Type header
Compressible Content-Type / mime checking
Database to mime-format based on content-type header and content
Simple class to get the content-type from a file given
Get the content charset from header and html content-type.
hint for media types (f.k.a. MIME types) related best practices
Class for parsing, stringifying and manipulating media types. Useful for content negotiation. Follows RFC2045, supports quoted parameters, all allowed characters etc.
Gets the Content Type for a URL
Lookups correct MIME content-type for specified path and return it as a string
Get the mime type of a stream
A helper for combating incorrect content-type, aka a mime sniffing module for node.js
File extensions and media types, grouped by application and type. Useful when you need to process or restrict processing to certain types of files.
An Express middleware to override the `content-type` header of the request.
Create a full Content-Type header given a MIME type or extension and catch the result
Express middleware for blocking unwanted Content-Type(s).
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
HTTP Content-* headers parsing