JSPM

Found 1211 results for detect

supports-color

Detect whether a terminal supports color

  • v10.2.0
  • 95.67
  • Published

has-flag

Check if argv has a specific flag

  • v5.0.1
  • 91.07
  • Published

is-stream

Check if something is a Node.js stream

  • v4.0.1
  • 90.25
  • Published

is-fullwidth-code-point

Check if the character represented by a given Unicode code point is fullwidth

  • v5.0.0
  • 90.20
  • Published

is-wsl

Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)

  • v3.1.0
  • 87.29
  • Published

ci-info

Get details about the current Continuous Integration environment

  • v4.3.0
  • 87.28
  • Published

is-binary-path

Check if a file path is a binary file

  • v3.0.0
  • 87.14
  • Published

is-docker

Check if the process is running inside a Docker container

  • v3.0.0
  • 85.35
  • Published

is-typedarray

Detect whether or not an object is a Typed Array

  • v1.0.0
  • 84.62
  • Published

is-interactive

Check if stdout or stderr is interactive

  • v2.0.0
  • 84.51
  • Published

is-generator-fn

Check if something is a generator function

  • v3.0.0
  • 84.31
  • Published

file-type

Detect the file type of a file, stream, or data

  • v21.0.0
  • 84.26
  • Published

detect-indent

Detect the indentation of code

  • v7.0.1
  • 82.70
  • Published

is-ci

Detect if the current environment is a CI server

  • v4.1.0
  • 82.31
  • Published

detect-node

Detect Node.JS (as opposite to browser environment) (reliable)

  • v2.1.0
  • 81.98
  • Published

environment

Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc

  • v1.1.0
  • 80.81
  • Published

is-inside-container

Check if the process is running inside a container (Docker/Podman)

  • v1.0.0
  • 80.59
  • Published

detect-node-es

Detect Node.JS (as opposite to browser environment). ESM modification

  • v1.1.0
  • 80.41
  • Published

is-lambda

Detect if your code is running on an AWS Lambda server

  • v1.0.1
  • 79.75
  • Published

is-npm

Check if your code is running as an npm script

  • v6.0.0
  • 79.24
  • Published

esniff

Low footprint ECMAScript source code parser

  • v2.0.1
  • 78.06
  • Published

path-root-regex

Regular expression for getting the root of a posix or windows filepath.

  • v0.1.2
  • 77.63
  • Published

p-is-promise

Check if something is a promise

  • v4.0.0
  • 77.56
  • Published

is-absolute

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`.

  • v1.0.0
  • 76.98
  • Published

typical

Isomorphic, functional type-checking for Javascript

  • v7.3.0
  • 76.83
  • Published

is-text-path

Check if a file path is a text file

  • v3.0.0
  • 76.52
  • Published

has-yarn

Check if a project is using Yarn

  • v3.0.0
  • 76.44
  • Published

detect-file

Detects if a file exists and returns the resolved filepath.

  • v1.0.0
  • 76.14
  • Published

is-builtin-module

Check if a string matches the name of a Node.js builtin module

  • v5.0.0
  • 76.10
  • Published

cpu-features

A simple binding to Google's cpu_features library for obtaining information about installed CPU(s)

  • v0.0.10
  • 75.20
  • Published

detect-port

Node.js implementation of port detector

  • v2.1.0
  • 74.35
  • Published

is-network-error

Check if a value is a Fetch network error

  • v1.1.0
  • 74.04
  • Published

knip

Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects

  • v5.63.0
  • 74.02
  • Published

is-gzip

Check if a Buffer/Uint8Array is a GZIP file

  • v2.0.0
  • 73.77
  • Published

is-dotfile

Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.

  • v2.0.0
  • 73.21
  • Published

is-redirect

Check if a number is a redirect HTTP status code

  • v2.0.0
  • 72.89
  • Published

archive-type

Detect the archive type of a Buffer/Uint8Array

  • v4.0.0
  • 71.71
  • Published

is-svg

Check if a string is SVG

  • v6.1.0
  • 71.57
  • Published

is64bit

Check whether operating system CPU architecture is 64-bit or 32-bit (Supports browsers)

  • v2.0.0
  • 71.20
  • Published

is-observable

Check if a value is an Observable

  • v3.0.0
  • 70.14
  • Published

istextorbinary

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

  • v9.5.0
  • 70.00
  • Published

encoding-japanese

Convert and detect character encoding in JavaScript

  • v2.2.0
  • 69.81
  • Published

is-in-ci

Check if the process is running in a Continuous Integration (CI) environment

  • v2.0.0
  • 69.26
  • Published

is-window

Checks if the given value is a window object.

  • v1.0.2
  • 68.97
  • Published

detect-browser

Unpack a browser type and version from the useragent string

  • v5.3.0
  • 68.48
  • Published

is-ip

Check if a string is an IP address

  • v5.0.1
  • 67.81
  • Published

undeclared-identifiers

find undeclared identifiers and property accesses in a javascript file.

  • v1.1.3
  • 67.78
  • Published

globalyzer

Detect and extract the static part of a glob string

  • v0.1.4
  • 67.72
  • Published

is-scoped

Check if a string is a scoped npm package name

  • v3.0.0
  • 66.91
  • Published

is-png

Check if a Buffer/Uint8Array is a PNG image

  • v3.0.1
  • 66.83
  • Published

is-alphanumeric

Check if a string only contains alphanumeric characters

  • v1.0.0
  • 66.81
  • Published

react-device-detect

Detect device type and render your component according to it

  • v2.2.3
  • 66.73
  • Published

detect-gpu

Classify GPU's based on their benchmark score in order to provide an adaptive experience.

  • v5.0.70
  • 66.43
  • Published

run-node

Run the Node.js binary no matter what

  • v2.0.0
  • 65.79
  • Published

is-gif

Check if a Buffer/Uint8Array is a GIF image

  • v4.0.1
  • 65.59
  • Published

is-jpg

Check if a Buffer/Uint8Array is a JPEG image

  • v3.0.0
  • 64.58
  • Published

is-html

Check if a string is HTML

  • v3.1.0
  • 64.37
  • Published

estree-is-function

check if an AST node is a function of some sort

  • v1.0.0
  • 63.04
  • Published

is-tar

Check if a Buffer/Uint8Array is a TAR file

  • v1.0.0
  • 62.98
  • Published

is-firefox

Check if browser is Firefox

  • v1.0.3
  • 62.64
  • Published

is-blob

Check if a value is a `Blob`

  • v3.0.0
  • 62.05
  • Published

detect-it

Detect if a device is mouse only, touch only, or hybrid

  • v4.0.1
  • 61.72
  • Published

mobile-detect

Device detection (phone, tablet, desktop, mobile grade, os, versions)

  • v1.4.5
  • 61.51
  • Published

is-cwebp-readable

Check if a Buffer/Uint8Array is available for cwebp image source

  • v3.0.0
  • 61.29
  • Published

dpdm

Analyze circular dependencies in your JavaScript/TypeScript projects.

  • v3.14.0
  • 61.10
  • Published

is-iexplorer

Check if browser is Internet Explorer

  • v1.0.0
  • 60.76
  • Published

is-podman

Check if the process is running inside a Podman container

  • v1.0.1
  • 60.48
  • Published

electron-is-dev

Check if Electron is running in development

  • v3.0.1
  • 60.45
  • Published

is-nil

Checks if the given value is null or undefined

  • v1.0.1
  • 60.41
  • Published

crlf-normalize

Detect and Normalize the newline characters

  • v1.0.20
  • 60.01
  • Published

url-regex-safe

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.

  • v4.0.0
  • 59.83
  • Published

audio-type

Detect the audio type of a Buffer/Uint8Array

  • v2.2.1
  • 59.68
  • Published

@thi.ng/checks

Collection of 70+ type, feature & value checks

  • v3.7.17
  • 59.52
  • Published

is-native

Checks if the given value is a native function.

  • v1.0.1
  • 59.38
  • Published

has-async-hooks

check if the current node version has async_hooks.

  • v1.0.0
  • 59.22
  • Published

is-online

Check if the internet connection is up

  • v11.0.0
  • 58.33
  • Published

is-reachable

Check if servers are reachable

  • v5.2.1
  • 57.75
  • Published

is-emoji-supported

Detect if the current device support the specified emoji

  • v0.0.5
  • 57.68
  • Published

image-type

Detect the image type of an ArrayBuffer/Uint8Array

  • v6.0.0
  • 57.44
  • Published

is-zip

Check if a Buffer/Uint8Array is a ZIP file

  • v1.0.0
  • 57.13
  • Published

capability

capability.js - javascript environment capability detection

  • v0.2.5
  • 56.32
  • Published

upath2

A proxy to `path`, replacing `\` with `/` for all results

  • v3.1.20
  • 56.25
  • Published

franc

Detect the language of text

  • v6.2.0
  • 56.15
  • Published

is-bzip2

Check if a Buffer/Uint8Array is a BZIP2 file

  • v1.0.0
  • 55.95
  • Published

detect-pointer

JavaScript wrapper for pointer and any-pointer media queries

  • v1.0.3
  • 55.95
  • Published

is-fn

Check if a value is a function

  • v3.0.0
  • 55.93
  • Published

detect-hover

JavaScript wrapper for hover and any-hover media queries

  • v1.0.3
  • 55.91
  • Published

valid-filename

Check if a string is a valid filename

  • v4.0.0
  • 55.10
  • Published

detect-touch-events

Detect if the browser supports the touch events api

  • v2.0.2
  • 54.93
  • Published

detect-file-encoding-and-language

Charset Detector - Detect the encoding and language of text files - Use it in the browser, with Node.js, or via CLI

  • v2.4.0
  • 54.74
  • Published

is-node

Detect if current process is a node application or not.

  • v1.1.1
  • 54.39
  • Published

file-type-checker

Detect and validate file types by their signatures (✨magic numbers✨)

  • v1.1.4
  • 53.59
  • Published

franc-min

Detect the language of text

  • v6.2.0
  • 52.87
  • Published

react-container-dimensions

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)

  • v1.4.1
  • 52.58
  • Published

browser-detect

Simplify detecting your browser

  • v0.2.28
  • 52.56
  • Published

is-admin

Check if the process is running as administrator on Windows

  • v4.0.0
  • 52.50
  • Published

@1natsu/wait-element

Detect the appearance of an element in the browser DOM

  • v4.1.2
  • 52.45
  • Published

feature-detect-es6

Detect which ES6 (ES2015 and above) features are available

  • v1.5.0
  • 52.43
  • Published

any

Returns `true` if a value exists in the given string, array or object.

  • v1.0.0
  • 52.39
  • Published

wasm-check

TypeScript / JavaScript library for detect WebAssembly features in node.js & browser

  • v2.1.2
  • 52.39
  • Published

project-name

Get the name of a project, from package.json, git config, or basename of the current working directory.

  • v1.0.0
  • 52.23
  • Published

detect-repo-changelog

Scans a repository directory, searching for a changelog file

  • v1.0.1
  • 52.18
  • Published

detect-installed

Checks that given package is installed globally or locally.

  • v2.0.4
  • 51.91
  • Published

resolve-accept-language

Resolve the preferred locale based on the value of an `Accept-Language` HTTP header.

  • v3.1.13
  • 51.78
  • Published

is-elevated

Check if the process is running with elevated privileges

  • v4.0.0
  • 51.75
  • Published

enable

ES6 and ES7 feature detection.

  • v3.4.0
  • 51.45
  • Published

is-image

Check if a file path is an image

  • v4.0.0
  • 51.32
  • Published

isbot-fast

JavaScript module detecting bots/crawlers/spiders via user-agent

  • v1.2.0
  • 51.29
  • Published

supports-webp

Instantly detect support for WEBP images in the browser in 0.2KB

  • v3.0.0
  • 50.90
  • Published

@file-type/xml

XML detection plugin for file-type

  • v0.4.3
  • 49.88
  • Published

tinyld

Simple and Performant Language detection library (pure JS and zero dependencies)

  • v1.3.4
  • 49.78
  • Published

dpdm-fast

Analyze circular dependencies in your JavaScript/TypeScript projects with Rust.

  • v1.0.13
  • 49.76
  • Published

mime-kind

Detect the MIME type of a Buffer, Uint8Array, ArrayBuffer, ReadableStream, file path and file name, with async method.

  • v4.0.0
  • 49.11
  • Published

@arcjet/runtime

Arcjet runtime detection

  • v1.0.0-beta.10
  • 48.81
  • Published

cld

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

  • v2.10.1
  • 48.75
  • Published

estree-is-require

check if an AST node is a call to require()

  • v1.0.0
  • 48.71
  • Published

package-license

Checks the filesystem for potential license files and attempts to detect what they are

  • v0.4.1
  • 48.57
  • Published

is-array-like

Checks if the given value is an array or array-like object.

  • v1.1.2
  • 48.31
  • Published

lang-map

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)

  • v0.4.0
  • 48.25
  • Published

@esm2cjs/is-stream

Check if something is a Node.js stream. This is a fork of sindresorhus/is-stream, but with CommonJS support.

  • v3.0.0
  • 48.18
  • Published

syllable

Count syllables in English words

  • v5.0.1
  • 47.61
  • Published

is-ttf

Check if a String/Buffer is TTF

  • v0.2.2
  • 46.90
  • Published

dotdir-regex

Regex for matching dot-directories, like `.git/`

  • v1.0.1
  • 46.66
  • Published

is-otf

Check if a String/Buffer/ArrayBuffer is OTF

  • v0.1.2
  • 46.59
  • Published

hash-runner

Executes a command when a change is detected in specified files. Not an active file watcher.

  • v4.0.0
  • 46.48
  • Published

has-dom

Check if a JavaScript environment has a DOM

  • v2.0.0
  • 46.32
  • Published

is-video

Check if a file path is a video file

  • v2.0.0
  • 46.24
  • Published

is-executable

Check whether a file can be executed

  • v2.0.1
  • 45.99
  • Published

adblock-detect-react

Provides utilities to check if ad block is enabled on a page via both a React hook and a wrapper component.

  • v1.3.1
  • 45.90
  • Published

svelte-inview

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.

  • v4.0.4
  • 45.71
  • Published

get-doc

Get document, if there’s DOM.

  • v1.0.4
  • 45.60
  • Published

@jsbits/get-package-version

Get the version of the package.json file found in the given directory or in one of its parents.

  • v1.0.3
  • 45.42
  • Published

ua_parser

check browser and browser's version from userAgent

  • v1.2.9
  • 45.05
  • Published

is-binary

Detects if a file is binary based on its content

  • v0.1.0
  • 44.88
  • Published

detect-ts-node

Detect whether the code is running in TS Node

  • v1.0.5
  • 44.64
  • Published

ng-connection-service

Detects active internet connection, and API server status in Angular application.

  • v13.0.2
  • 44.29
  • Published

connectivity

Detect if the network is up (do we have connectivity?)

  • v1.0.2
  • 43.51
  • Published

inapp-spy

detect in-app browsers

  • v5.0.2
  • 43.42
  • Published

is-stun

Check if a Buffer is a STUN message.

  • v2.0.0
  • 43.29
  • Published

device-detect

JavaScript module to check if user agent to return the device and browser.

  • v1.0.7
  • 43.15
  • Published

platform-detect

🃏 Minimalistic isomorphic library for detection of platform, runtime, APIs and more.

  • v3.0.1
  • 43.14
  • Published

is-woff

Check if a Buffer/Uint8Array is WOFF

  • v1.0.3
  • 43.08
  • Published

is-wav

Check if a Buffer/Uint8Array is a wav file.

  • v1.1.2
  • 42.72
  • Published

is-m4a

Check if a Buffer/Uint8Array is a m4a file.

  • v1.0.2
  • 42.72
  • Published

is-woff2

Check if a buffer/Uint8Array is a woff2 file

  • v1.0.0
  • 42.68
  • Published

is-flac

Check if a Buffer/Uint8Array is a FLAC file.

  • v1.1.2
  • 42.67
  • Published

email-regex-safe

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.

  • v4.0.0
  • 42.61
  • Published

is-index

Checks if the given value is a valid array-like index.

  • v1.0.2
  • 42.33
  • Published

is-eot

Check if a Buffer/Uint8Array is EOT

  • v1.0.0
  • 42.29
  • Published

franc-all

Detect the language of text

  • v7.2.0
  • 42.10
  • Published

jsinspect

Detect structural similarities in your code

  • v0.12.7
  • 42.10
  • Published

@d-fischer/detect-node

Detect Node.JS (as opposite to browser environment) (reliable)

  • v3.0.1
  • 42.09
  • Published

sleuth

Discover the variable names chosen for each of a file's top-level required modules

  • v0.1.1
  • 41.94
  • Published

is-ogg

Check if a Buffer/Uint8Array is an OGG file.

  • v1.1.2
  • 41.87
  • Published

find-cycle

find and identify a cycle in a directed graph

  • v1.1.0
  • 41.80
  • Published

is-mp3

Check if a Buffer/Uint8Array is a MP3 file.

  • v1.1.3
  • 41.46
  • Published

withinviewport

Determine whether an element is completely within the browser viewport

  • v3.0.1
  • 41.25
  • Published

i18n-lint

Lint HTML and template source files for hardcoded (untranslated) strings

  • v1.1.0
  • 40.60
  • Published

file-reader

Read a glob of files, dynamically choosing the reader or requiring the files based on the file extension.

  • v1.1.1
  • 40.59
  • Published

element-ready

Detect when an element is ready in the DOM

  • v8.0.0
  • 40.59
  • Published

bad-words-next

JavaScript/TypeScript filter and checker for bad words aka profanity

  • v3.1.1
  • 40.56
  • Published

glin-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

  • v2.3.5
  • 40.09
  • Published

detect-eol

Quickly detect the EOL used in a string.

  • v3.0.1
  • 40.09
  • Published

devtools-detect

Detect if DevTools is open and its orientation

  • v4.0.2
  • 40.03
  • Published

image-validator

A small and simple utility package that can validate any kind of image. It can detect corrupt files, or invalid image urls

  • v1.2.1
  • 39.72
  • Published

use-scroll-direction

A simple, performant, and cross-browser hook for handling scroll in your next react app.

  • v1.1.4
  • 39.54
  • Published

word-regex

Regular expression for matching words in a string. Support for english, CJK and Cyrillic.

  • v0.1.2
  • 39.54
  • Published

rsa-key

Converts between RSA key formats, detecting input format (PEM, DER, PKCS1, PKCS8). No OpenSSL needed.

  • v0.0.6
  • 38.62
  • Published

chrome-version

Detect the current chrome version in the browser

  • v1.0.1
  • 38.54
  • Published

ced

Detect the character encoding using Google’s compact_enc_det library

  • v2.0.0
  • 38.53
  • Published

is-apng

Check if a Buffer/Uint8Array is a APNG (Animated PNG) image

  • v1.2.0
  • 38.48
  • Published

@qawolf/ci-info

Get details about the current Continuous Integration environment

  • v2.1.0
  • 38.41
  • Published

jsinspect-plus

Detect copy-pasted and structurally similar code. Supports ES2020 standard (and most proposed features), TS and TSX files. Using Babel 8's parser.

  • v3.1.3
  • 38.40
  • Published

webext-detect

Detects where the current browser extension code is being run. Compatible with Firefox, Chrome and derivates.

  • v5.3.2
  • 38.20
  • Published

is-html-content

The simplest way for detecting HTML content.

  • v1.0.0
  • 37.95
  • Published

pitchfinder

A pitch-detection library for node and the browser

  • v2.3.2
  • 37.91
  • Published

detect.js

JS Library to detect browser, os and device based on the UserAgent String, forked by John Carmichael for ease of use.

  • v2.2.3
  • 37.89
  • Published

match-words

Match the words in a string. Support for english, CJK and Cyrillic.

  • v1.0.0
  • 37.75
  • Published

supports-webp-sync

Checks if the browser supports WebP. Cheaply and synchronously.

  • v1.1.3
  • 37.72
  • Published

polyfill-io-feature-detection

Feature detection in the browser before loading polyfill using services like polyfill.io

  • v1.1.15
  • 37.68
  • Published

dotfile-regex

Regular expresson for matching dotfiles.

  • v1.0.2
  • 37.61
  • Published

cursor-position

Simple module for getting the current mouse position in element or window.

  • v1.0.1
  • 37.60
  • Published

is-appveyor

Check if Node script is running on AppVeyor

  • v1.0.0
  • 37.31
  • Published

v-offline

Offline and Online components for Vue

  • v3.5.0
  • 37.22
  • Published

containerized

A microlibrary to detect whether Node.js runs inside a Docker container or not

  • v1.0.2
  • 37.20
  • Published

browserama

A browser detection package that uses feature detection instead of user agent

  • v3.2.2
  • 37.09
  • Published

language-detect

Detect the programming language of any file.

  • v1.1.0
  • 36.98
  • Published

use-mobile-detect-hook

The React hook to detect if the device is mobile or desktop.

  • v1.0.5
  • 36.83
  • Published

react-ad-block-detect

A React component that renders its children if an ad blocker is detected

  • v1.0.1
  • 36.80
  • Published

is-internet-available

Checks if internet is available using http2, node v8.4.0+ only

  • v3.1.0
  • 36.78
  • Published

env-sense

Detect environment (native, server side, web, etc.)

  • v1.0.1
  • 36.60
  • Published

valid-directory

Check whether or not a directory and its descendants are valid

  • v4.9.0
  • 36.45
  • Published

ngx-unused-css

Detect unused CSS in angular components

  • v4.0.0-1
  • 36.43
  • Published

is-zip-file

Checks if the file path is zip file. It does not read the complete file nor it depends upon file extension

  • v1.0.2
  • 36.42
  • Published

is-7zip

Check if a Buffer/Uint8Array is a 7ZIP file

  • v2.0.0
  • 36.30
  • Published

is-xml

Check if a string is XML

  • v0.1.0
  • 35.85
  • Published

is-rar

Check if a Buffer/Uint8Array is a RAR file

  • v2.0.0
  • 35.83
  • Published

@scrypted/coreml

Scrypted CoreML Object Detection

    • v0.1.83
    • 35.74
    • Published

    detect-mocha

    Detect if Mocha is running

    • v0.1.0
    • 35.71
    • Published

    @dekkai/env

    Utility methods to detect runtimes and load modules dynamically.

    • v1.1.0
    • 35.68
    • Published

    is-node-stream

    Strictly and correctly checks if value is a nodejs stream.

    • v1.0.0
    • 35.45
    • Published

    detectizr

    Detectizr is a Modernizr extension to detect device, browser, operating system and screen.

    • v2.2.0
    • 35.36
    • Published