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