A lightweight library to determine a file's type based on its magic bytes.
Detect Filetype by bytes
CLI & API for secure file upload validation: check file type (magic bytes, MIME), detect Office macros/malware, audit logging, parallel scanning, and CI/CD integration.
No description provided.
Utility to parse a string bytes to bytes and vice-versa
Modify strings, generate sourcemaps
Detect the file type of a file, stream, or data
Convert bytes to a human readable string: 1337 → 1.34 kB
Minimalist yEnc and dynEncode encoder and decoder library for browser and NodeJS
Detects if a file is binary in Node.js. Similar to Perl's -B.
A compiled-away, type-safe, readable RegExp alternative
Lightning-fast file type detection using magic bytes (file signatures) with a focus on stream processing and minimal memory usage
Some useful utilities I often need
Truncate string to given length in bytes
An iteration of the Node.js core streams with a series of improvements
Various operations on Uint8Array data
Sniff the encoding from a HTML byte stream
URL and cookie safe UIDs
Variant of quickjs library: Variant with separate .WASM file. Supports browser ESM, NodeJS ESM, and NodeJS CommonJS.
Variant of quickjs library: Variant with separate .WASM file. Supports browser ESM, NodeJS ESM, and NodeJS CommonJS.
Detect the archive type of a Buffer/Uint8Array
Utils to work with iden3 binary files.
magic-string with AST shortcut.
watch mode for browserify builds
Detect MIME types from file extensions, filenames, and binary content using magic byte signatures. Includes 200+ extension mappings, 30+ magic byte patterns, custom registration, charset detection, Accept header parsing, and content negotiation.
Extend ActionDispatch::HTTP::UploadedFile to detect file type from magic byte
MimeTyper is a comprehensive, pure Ruby MIME type detection library that uses magic bytes and file extensions to accurately identify file types. Built for reliability and simplicity.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.