istextorbinary

File type detector

Determines if a filename or buffer is text or binary with an extension check and contents analysis

Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.

GitHub

148 stars
4 watching
17 forks
Language: TypeScript
last commit: about 1 month ago
Linked from 2 awesome lists

nodejs

Backlinks from these awesome lists:

Related projects:

Repository Description Stars
sindresorhus/file-type-cli Detects the type of file or input provided 74
versionable/ferret A mime detection library for PHP that identifies the type of a given file based on its content 20
sindresorhus/is A utility for determining the type of a value at compile-time or runtime 1,682
adoreste/truehunter Detects encrypted files using a fast and memory efficient approach without external dependencies. 30
bahmutov/ban-sensitive-files Checks filenames to prevent sensitive files from being committed to Git 63
vitalets/babel-plugin-runtyper An add-on to JavaScript code analysis that detects and prevents type-coercion bugs during runtime. 116
sindresorhus/image-type Detects the type of an image from a binary buffer 373
woutervh-/typescript-is Automates writing type predicate functions to check unknown or untyped data at runtime 959
h2non/filetype A package to infer file types and MIME types based on magic numbers header signatures. 2,126
bevry/cson A Caffeescript implementation of JSON-like data format 1,336
microsoft/typescript A language extension that adds optional types to JavaScript for large-scale applications 101,167
amilajack/ast-metadata-inferer Analyzes JavaScript API metadata to determine AST node types and compatibility information. 6
bcheidemann/entype Generates type definitions for serialized data formats like JSON 3
bevry/editions A tool that enables consistent and easy publishing of multiple versions of JavaScript packages 61
teknologi-umum/flourite Automatically detects programming languages from given strings. 38