file-type-cjs
A CommonJS port from the ESM file-type package.
A CommonJS port from the ESM file-type package.
Node.js Buffer API, for the browser
Detect the file type of a Buffer/Uint8Array/ArrayBuffer
Node.js Buffer API, for the browser
Fast Pure JavaScript MessagePack Encoder and Decoder
Check if a Buffer/Uint8Array is a PDF file.
A JavaScript extension package for building strong and modern applications.
Decode data. Browser or NodeJS.
Encode data to utf8 bytes. Browser or NodeJS.
Chai assertions for byte arrays equality
Uint8Array <-> Base64, very small size library
TypedArray. Work with bytes. Can be used as a Buffer, TypedArray, BitView, DataView. Client side and server side support.
Detect the image type of Buffer/Uint8Array
Fast uint8array to utf-8 codepoint iterator for streams and array buffers by @okikio & @jonathantneal
## Usage
Generate a cryptographically-random Uint8Array with the given number of bytes of entropy.
Detect file type by signature
A tiny function for decoding base64 strings into Uint8Arrays, useful for bundling and loading WASM modules.
Modular utility hooks that we often use grouped in one package. Written in TypeScript, documented, tested and maintained.Disclaimer: at least React 16 is needed (the one with hooks ;) )
Node.js Buffer API, for the browser