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: almost 2 years ago
Linked from 2 awesome lists

nodejs

Backlinks from these awesome lists:

Related projects:

RepositoryDescriptionStars
sindresorhus/file-type-cliDetects the type of file or input provided74
versionable/ferretA mime detection library for PHP that identifies the type of a given file based on its content20
sindresorhus/isA utility for determining the type of a value at compile-time or runtime1,687
adoreste/truehunterDetects encrypted files using a fast and memory efficient approach without external dependencies.30
bahmutov/ban-sensitive-filesChecks filenames to prevent sensitive files from being committed to Git64
vitalets/babel-plugin-runtyperAn add-on to JavaScript code analysis that detects and prevents type-coercion bugs during runtime.116
sindresorhus/image-typeDetects the type of an image from a binary buffer373
woutervh-/typescript-isAutomates writing type predicate functions to check unknown or untyped data at runtime959
h2non/filetypeA package to infer file types and MIME types based on magic numbers header signatures.2,136
bevry/csonA Caffeescript implementation of JSON-like data format1,337
microsoft/typescriptA language extension that adds optional types to JavaScript for large-scale applications101,442
amilajack/ast-metadata-infererAnalyzes JavaScript API metadata to determine AST node types and compatibility information.7
bcheidemann/entypeGenerates type definitions for serialized data formats like JSON3
bevry/editionsA tool that enables consistent and easy publishing of multiple versions of JavaScript packages61
teknologi-umum/flouriteAutomatically detects programming languages from given strings.39