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