55 packages found
Check if a file path is a binary file
Detect the file type of a Buffer/Uint8Array/ArrayBuffer
Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.
- bin
- binary
- browser
- check
- detect
- encoding
- es2019
- ext
- extension
- extensions
- file
- is
- is binary
- is binary file
- View more
Test if a value is a binary string.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- is
- binary
- string
- isstring
- isbinary
- binarystring
- View more
Detect the image type of a Buffer/Uint8Array
Check if a Buffer/Uint8Array is a JPEG image
Check if a Buffer/Uint8Array is a GIF image
Check if a Buffer/Uint8Array is a PNG image
Validates if a value is a binary string.
Check if your package was installed globally
Validation utilities.
- validate.io
- validator
- validation
- validate
- valid
- is
- isvalid
- check
- typed
- assert
- expect
- api
- string
- primitive
- View more
Returns true if a buffer is binary. Takes a buffer and does not read from the file system.
Detect the audio type of a Buffer/Uint8Array
Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.
A CommonJS port from the ESM file-type package.
Check if a Buffer/Uint8Array is a WebP image
Check if a Buffer/Uint8Array is a TIFF image
Check if a Buffer/Uint8Array is a PSD image
Check if a Buffer/Uint8Array is WOFF
Check if a Buffer/Uint8Array is EOT