480 packages found
The ultimate javascript content-type utility.
Media Type Database
Detect the file type of a Buffer/Uint8Array/ArrayBuffer
Compressible Content-Type / mime checking
Encode and decode quoted printable and base64 strings
A lean, modular web server for rapid full-stack development
Detect Filetype by bytes
Encode and decode rfc2047 (MIME encoded words)
Get the file extension and MIME type from a file
Emscripten port of libmagic (https://darwinsys.com/file/) with javascript interface
Express middleware for blocking unwanted Content-Type(s).
An async libmagic binding for node.js for detecting content types by data inspection
Luke's encoding library contains many stream implementations for specific types of encoding, most libraries these days only have one type of encoding, or don't use streams so I decided to create one myself because I need it for some of my projects.
Create a full Content-Type header given a MIME type or extension and catch the result
parse a data uri into mime type and buffer
Get mimetype from base64-encoded images
Resolve fs.Stat to mimetype, ownername, groupname, and human-readable permissions.