file-type

File type detector

Detects file types by examining their binary signature

Detect the file type of a file, stream, or data

GitHub

4k stars
29 watching
354 forks
Language: JavaScript
last commit: 6 days ago
Linked from 1 awesome list

bufferdetectfilefile-typesjavascriptmagicmagic-numbersnodejsuint8array

Backlinks from these awesome lists:

Related projects:

Repository Description Stars
sindresorhus/file-type-cli Detects the type of file or input provided 74
sindresorhus/image-type Detects the type of an image from a binary buffer 373
sindresorhus/into-stream Converts various input types into readable streams. 207
sindresorhus/is-stream A utility library to check if an object is a Node.js stream 111
sindresorhus/to-readable-stream Converts a string or binary data into a stream for piping to other tools 90
bevry/istextorbinary Determines if a filename or buffer is text or binary with an extension check and contents analysis 148
h2non/filetype A package to infer file types and MIME types based on magic numbers header signatures. 2,119
sindresorhus/is A utility for determining the type of a value at compile-time or runtime 1,682
sindresorhus/random-bytes-readable-stream Creates a stream producing cryptographically strong pseudo-random data 76
sindresorhus/gulp-changed A plugin for Gulp that only processes files that have changed since the last run. 742
sindresorhus/electron-serve A utility to serve static files in Electron apps 438
sindresorhus/gulp-filter A plugin for Gulp that enables filtering of file streams using glob patterns 315
sindresorhus/latest-version-cli A tool to find the latest version of an npm package 53
sindresorhus/noop-stream Creates streams with minimal data production or discarding of received data. 52
sindresorhus/gulp-size A tool to report the total size of files in a project during build processes 229