supports-color
Detect whether a terminal supports color
Found 1224 results for detect
Detect whether a terminal supports color
Check if argv has a specific flag
Check if the character represented by a given Unicode code point is fullwidth
Check if something is a Node.js stream
Get details about the current Continuous Integration environment
Check if a file path is a binary file
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Detect whether the terminal supports Unicode
Check if the process is running inside a Docker container
Detect the file type of a file, stream, or data
Check if something is a generator function
Detect whether a terminal supports hyperlinks
Detect the indentation of code
Detect if the current environment is a CI server
Check if stdout or stderr is interactive
Detect whether or not an object is a Typed Array
Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc
Check if your package was installed globally
Check if the process is running inside a container (Docker/Podman)
Detect if your code is running on an AWS Lambda server
Check if your code is running as an npm script
Detect Node.JS (as opposite to browser environment) (reliable)
Detect Node.JS (as opposite to browser environment). ESM modification
Check if something is a promise
Check if a string matches the name of a Node.js builtin module
Regular expression for getting the root of a posix or windows filepath.
Check if a project is using Yarn
Check if a file path is a text file
detect available port
Detects if a file exists and returns the resolved filepath.
Returns true if a file path is absolute. Does not rely on the path module and can be used as a polyfill for node.js native `path.isAbolute`.
Isomorphic, functional type-checking for Javascript
Check if a value is a Fetch network error
Low footprint ECMAScript source code parser
Node.js implementation of port detector
Check if a Buffer/Uint8Array is a GZIP file
A simple binding to Google's cpu_features library for obtaining information about installed CPU(s)
Check if a number is a redirect HTTP status code
Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects
Detect which package manager you're using (yarn or npm)
Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.
Check whether operating system CPU architecture is 64-bit or 32-bit (Supports browsers)
Check if a value is an Observable
Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.
Detect the archive type of a Buffer/Uint8Array
Get the operating system CPU architecture
Check if the process is running in a Continuous Integration (CI) environment
Convert and detect character encoding in JavaScript
A tool to get browser's scrollbars width.
Detect the archive type of a Buffer/Uint8Array
Check if a string is an IP address
Unpack a browser type and version from the useragent string
Detect and extract the static part of a glob string
Check if a string is SVG
Detect device type and render your component according to it
Check if a Buffer/Uint8Array is a PNG image
find undeclared identifiers and property accesses in a javascript file.
Classify GPU's based on their benchmark score in order to provide an adaptive experience.
Check if a string only contains alphanumeric characters
Check if a string is a scoped npm package name
Checks if the given value is a window object.
Check if a Buffer/Uint8Array is a JPEG image
Detect native Symbol support.
Detect native Uint32Array support.
Run the Node.js binary no matter what
Detect native Symbol.toStringTag support.
Detect native Float32Array support.
Check if a string is HTML
Detect native Uint8Array support.
Check if a Buffer/Uint8Array is a TAR file
Check if a Buffer/Uint8Array is a GIF image
Detect native Buffer support.
Detect the indentation of code (commonjs fork)
Detect native Uint16Array support.
Detect native Float64Array support.
check if an AST node is a function of some sort
Check if browser is Internet Explorer
Check if a value is a `Blob`
Check if a Buffer/Uint8Array is available for cwebp image source
Check if browser is Firefox
Analyze circular dependencies in your JavaScript/TypeScript projects.
Detect if a device is mouse only, touch only, or hybrid
check if the current node version has async_hooks.
Check if Electron is running in development
Detect if the browser supports passive events
Check if the process is running inside a Podman container
Collection of 70+ type, feature & value checks
Regular expression matching for URL's. Maintained, safe, and browser-friendly version of url-regex. Resolves CVE-2020-7661. Works in Node v10.12.0+ and browsers.
Device detection (phone, tablet, desktop, mobile grade, os, versions)
Check if a value is a function
Check if servers are reachable
Check if a Buffer/Uint8Array is a ZIP file
Detect and Normalize the newline characters
check if an AST node is a MemberExpression, in general or a specific one
Checks if the given value is null or undefined
Detect the image type of an ArrayBuffer/Uint8Array
Detect the audio type of a Buffer/Uint8Array
Checks if the given value is a native function.
Detect if the current device support the specified emoji
Check if a string is an IP address
Check if a Buffer/Uint8Array is a BZIP2 file
Check if the internet connection is up
capability.js - javascript environment capability detection
Detect the language of text
JavaScript wrapper for pointer and any-pointer media queries
A proxy to `path`, replacing `\` with `/` for all results
Check if the current Linux session is using Wayland
Check if a string is a valid filename
Detect if current process is a node application or not.
JavaScript wrapper for hover and any-hover media queries
Charset Detector - Detect the encoding and language of text files - Use it in the browser, with Node.js, or via CLI
Detect if the browser supports the touch events api
Detect and validate file types by their signatures (✨magic numbers✨)
Detect the language of text
Resolve the preferred locale based on the value of an `Accept-Language` HTTP header.
Detect the appearance of an element in the browser DOM
Analyze circular dependencies in your JavaScript/TypeScript projects with Rust.
Simplify detecting your browser
Check if the process is running as administrator on Windows
JavaScript module detecting bots/crawlers/spiders via user-agent
Returns `true` if a value exists in the given string, array or object.
Checks that given package is installed globally or locally.
XML detection plugin for file-type
Detect native Int32Array support.
Wrapper component that detects element resize and passes new dimensions down the tree. Based on [element-resize-detector](https://github.com/wnr/element-resize-detector)
Detect native Int16Array support.
Get the name of a project, from package.json, git config, or basename of the current working directory.
Detect which ES6 (ES2015 and above) features are available
Detect native Int8Array support.
ES6 and ES7 feature detection.
Detect native generator function support.
Scans a repository directory, searching for a changelog file
Helpers for handling mobile devices
detect container resizing
Detect native Uint8ClampedArray support.
check if an AST node is a call to require()
Language detection for Javascript. Based on the CLD2 (Compact Language Detector) library from Google. Highly optimized for space and speed. Runs about 10x faster than other libraries. Detects over 160 languages. Full test coverage. Runs on Linux, OS X, an
TypeScript / JavaScript library for detect WebAssembly features in node.js & browser
Check if the process is running with elevated privileges
Simple and Performant Language detection library (pure JS and zero dependencies)
Checks the filesystem for potential license files and attempts to detect what they are
Check if something is a Node.js stream. This is a fork of sindresorhus/is-stream, but with CommonJS support.
Instantly detect support for WEBP images in the browser in 0.2KB
Arcjet runtime detection
Detects clicks outside React components, and also handles keypresses.
Check if a file path is an image
Detect the MIME type of a Buffer, Uint8Array, ArrayBuffer, ReadableStream, file path and file name, with async method.
Get the language associated with a file extension or the extensions associated with a language using the data from GitHub's [Linguist YAML file](https://github.com/github/linguist/blob/master/lib/linguist/languages.yml)
Count syllables in English words
Detect native Symbol.iterator support.
Offline and Online components for React
check if an AST node is a call to require()
Checks if the given value is an array or array-like object.
Check whether a file can be executed
Check if an Array is sorted
Check if a file path is a video file
Provides utilities to check if ad block is enabled on a page via both a React hook and a wrapper component.
Regex for matching dot-directories, like `.git/`
Detect if the network is up (do we have connectivity?)
Detect native function name support.
Get document, if there’s DOM.
Executes a command when a change is detected in specified files. Not an active file watcher.
Check if a Buffer is a STUN message.
Check if a String/Buffer is TTF
A Svelte action that monitors an element enters or leaves the viewport or a parent element. Performant and efficient thanks to using Intersection Observer under the hood.
Check if a JavaScript environment has a DOM
Get the version of the package.json file found in the given directory or in one of its parents.
It's FuckAdBlock with a minimalist API.
Detects active internet connection, and API server status in Angular application.
Utility to check if internet is connected or not
Check if a String/Buffer/ArrayBuffer is OTF
Detect whether the code is running in TS Node
detect in-app browsers
Detects if a file is binary based on its content
Scrypted Video Analysis Plugin. Installed alongside a detection service like OpenCV or TensorFlow.
Check if a Buffer/Uint8Array is EOT
JavaScript/TypeScript filter and checker for bad words aka profanity
Check if a Buffer/Uint8Array is WOFF
check browser and browser's version from userAgent
JavaScript module to check if user agent to return the device and browser.
Determine whether an element is completely within the browser viewport
Detect the language of text
Check if a buffer/Uint8Array is a woff2 file
🃏 Minimalistic isomorphic library for detection of platform, runtime, APIs and more.
Check if a Buffer/Uint8Array is a FLAC file.
find and identify a cycle in a directed graph
Detect file type by signature
Detect Node.JS (as opposite to browser environment) (reliable)
Checks if the given value is a valid array-like index.
Check if a Buffer/Uint8Array is a MP3 file.
Detect structural similarities in your code
Regular expression matching for email addresses. Maintained, configurable, more accurate, and browser-friendly alternative to email-regex. Works in Node v14+ and browsers. Made for Spam Scanner and Forward Email.
Check if a Buffer/Uint8Array is an OGG file.
Detect character encoding using ICU
Glin-Profanity is a lightweight and efficient npm package designed to detect and filter profane language in text inputs across multiple languages. Whether you’re building a chat application, a comment section, or any platform where user-generated content
Read a glob of files, dynamically choosing the reader or requiring the files based on the file extension.
Discover the variable names chosen for each of a file's top-level required modules
Fast and native browser detection on Windows
Check if a Buffer/Uint8Array is a m4a file.
Check if a Buffer/Uint8Array is a wav file.
Quickly detect the EOL used in a string.
Scrypted OpenVINO Object Detection
Regular expression for matching words in a string. Support for english, CJK and Cyrillic.
Detect if DevTools is open and its orientation
Detect when an element is ready in the DOM
A simple, performant, and cross-browser hook for handling scroll in your next react app.
A small and simple utility package that can validate any kind of image. It can detect corrupt files, or invalid image urls
Detect native DataView support.
Lint HTML and template source files for hardcoded (untranslated) strings
Detects where the current browser extension code is being run. Compatible with Firefox, Chrome and derivates.
Detect native ArrayBuffer support.
Fork of cld with pre-built binaries for OS X and Linux. Language detection for Javascript. Based on the CLD2 (Compact Language Detector) library from Google. Highly optimized for space and speed. Runs about 10x faster than other libraries. Detects over 16
Check if Node script is running on AppVeyor
detect available port
Library to check unused resolvers at Ovrsea
migration tool for sequelize & typescript users
Get details about the current Continuous Integration environment
A pitch-detection library for node and the browser
Detect native BigInt support.
Detect browser language
Converts between RSA key formats, detecting input format (PEM, DER, PKCS1, PKCS8). No OpenSSL needed.
Detect image dimensions via request.
JS Library to detect browser, os and device based on the UserAgent String, forked by John Carmichael for ease of use.
Detect copy-pasted and structurally similar code. Supports ES2020 standard (and most proposed features), TS and TSX files. Using Babel 8's parser.
Detect the character encoding using Google’s compact_enc_det library
Match the words in a string. Support for english, CJK and Cyrillic.
A browser detection package that uses feature detection instead of user agent
Check if a Buffer/Uint8Array is a APNG (Animated PNG) image
The React hook to detect if the device is mobile or desktop.
Offline and Online components for Vue
Detect the programming language of any file.
Detect if Mocha is running
Detects whether browser has an active internet connection or not in Angular application.
Feature detection in the browser before loading polyfill using services like polyfill.io
Checks if the file path is zip file. It does not read the complete file nor it depends upon file extension
Scrypted CoreML Object Detection
The simplest way for detecting HTML content.
A microlibrary to detect whether Node.js runs inside a Docker container or not
Regular expresson for matching dotfiles.
Convert a mime type to a file extension. It works only with popular mime types and it's super lightweight.
Checks if the browser supports WebP. Cheaply and synchronously.
A React component that renders its children if an ad blocker is detected
Check if a given string is css compatible color value
Simple module for getting the current mouse position in element or window.
Detect whether a terminal or browser supports ansi colors.
Detect the current chrome version in the browser
A path of the currently executed npm CLI
Check if a string is XML
A CommonJS port from the ESM file-type package. Now fixed to not have 'tarHeaderChecksumMatches' error!
Check if a value is an error constructor