JSPM

Found 1212 results for detect

detect-repo-changelog

Scans a repository directory, searching for a changelog file

  • v1.0.1
  • 51.11
  • Published

is-admin

Check if the process is running as administrator on Windows

  • v4.0.0
  • 51.08
  • Published

dpdm-fast

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

  • v1.0.13
  • 50.66
  • Published

@1natsu/wait-element

Detect the appearance of an element in the browser DOM

  • v4.1.2
  • 50.52
  • Published

project-name

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

  • v1.0.0
  • 50.49
  • Published

detect-installed

Checks that given package is installed globally or locally.

  • v2.0.4
  • 50.34
  • 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
  • 50.30
  • Published

isbot-fast

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

  • v1.2.0
  • 50.16
  • Published

supports-webp

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

  • v3.0.0
  • 49.66
  • Published

enable

ES6 and ES7 feature detection.

  • v3.4.0
  • 49.64
  • Published

tinyld

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

  • v1.3.4
  • 49.55
  • Published

is-elevated

Check if the process is running with elevated privileges

  • v4.0.0
  • 49.46
  • Published

@file-type/xml

XML detection plugin for file-type

  • v0.4.4
  • 49.31
  • Published

is-image

Check if a file path is an image

  • v4.0.0
  • 49.22
  • Published

estree-is-require

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

  • v1.0.0
  • 48.85
  • 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.31
  • 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.13
  • Published

package-license

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

  • v0.4.1
  • 48.08
  • Published

is-array-like

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

  • v1.1.2
  • 47.78
  • Published

mime-kind

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

  • v4.0.0
  • 47.73
  • Published

syllable

Count syllables in English words

  • v5.0.1
  • 47.51
  • Published

@arcjet/runtime

Arcjet runtime detection

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

has-dom

Check if a JavaScript environment has a DOM

  • v2.0.0
  • 46.85
  • Published

is-executable

Check whether a file can be executed

  • v2.0.1
  • 45.90
  • Published

is-video

Check if a file path is a video file

  • v2.0.0
  • 45.85
  • 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.78
  • 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.61
  • Published

is-ttf

Check if a String/Buffer is TTF

  • v0.2.2
  • 45.59
  • Published

get-doc

Get document, if there’s DOM.

  • v1.0.4
  • 45.42
  • Published

dotdir-regex

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

  • v1.0.1
  • 45.31
  • 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
  • 45.30
  • Published

hash-runner

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

  • v4.0.0
  • 45.04
  • Published

is-otf

Check if a String/Buffer/ArrayBuffer is OTF

  • v0.1.2
  • 44.66
  • Published

platform-detect

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

  • v3.0.1
  • 43.72
  • Published

detect-ts-node

Detect whether the code is running in TS Node

  • v1.0.5
  • 43.60
  • Published

ua_parser

check browser and browser's version from userAgent

  • v1.2.9
  • 43.58
  • Published

is-stun

Check if a Buffer is a STUN message.

  • v2.0.0
  • 43.44
  • Published

is-binary

Detects if a file is binary based on its content

  • v0.1.0
  • 43.44
  • 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
  • 43.39
  • Published

is-woff

Check if a Buffer/Uint8Array is WOFF

  • v1.0.3
  • 43.24
  • Published

inapp-spy

detect in-app browsers

  • v5.0.3
  • 43.07
  • Published

ng-connection-service

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

  • v13.0.2
  • 42.76
  • Published

connectivity

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

  • v1.0.2
  • 42.75
  • Published

device-detect

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

  • v1.0.7
  • 42.00
  • Published

is-flac

Check if a Buffer/Uint8Array is a FLAC file.

  • v1.1.2
  • 41.83
  • Published

is-eot

Check if a Buffer/Uint8Array is EOT

  • v1.0.0
  • 41.78
  • Published

find-cycle

find and identify a cycle in a directed graph

  • v1.1.0
  • 41.68
  • Published

is-woff2

Check if a buffer/Uint8Array is a woff2 file

  • v1.0.0
  • 41.48
  • Published

franc-all

Detect the language of text

  • v7.2.0
  • 41.25
  • Published

@d-fischer/detect-node

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

  • v3.0.1
  • 41.13
  • Published

i18n-lint

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

  • v1.1.0
  • 40.89
  • Published

detect-eol

Quickly detect the EOL used in a string.

  • v3.0.1
  • 40.85
  • Published

is-index

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

  • v1.0.2
  • 40.83
  • 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
  • 40.83
  • Published

is-mp3

Check if a Buffer/Uint8Array is a MP3 file.

  • v1.1.3
  • 40.61
  • Published

is-m4a

Check if a Buffer/Uint8Array is a m4a file.

  • v1.0.2
  • 40.47
  • Published

is-wav

Check if a Buffer/Uint8Array is a wav file.

  • v1.1.2
  • 40.47
  • Published

devtools-detect

Detect if DevTools is open and its orientation

  • v4.0.2
  • 40.46
  • Published

jsinspect

Detect structural similarities in your code

  • v0.12.7
  • 40.39
  • Published

withinviewport

Determine whether an element is completely within the browser viewport

  • v3.0.1
  • 40.33
  • Published

is-ogg

Check if a Buffer/Uint8Array is an OGG file.

  • v1.1.2
  • 40.32
  • Published

sleuth

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

  • v0.1.1
  • 40.32
  • 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.25
  • Published

use-scroll-direction

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

  • v1.1.4
  • 39.83
  • 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.7
  • 39.60
  • Published

bad-words-next

JavaScript/TypeScript filter and checker for bad words aka profanity

  • v3.1.1
  • 39.42
  • Published

element-ready

Detect when an element is ready in the DOM

  • v8.0.0
  • 38.90
  • 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
  • 38.83
  • Published

@qawolf/ci-info

Get details about the current Continuous Integration environment

  • v2.1.0
  • 38.09
  • Published

word-regex

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

  • v0.1.2
  • 37.98
  • Published

ced

Detect the character encoding using Google’s compact_enc_det library

  • v2.0.0
  • 37.54
  • Published

rsa-key

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

  • v0.0.6
  • 37.48
  • Published

chrome-version

Detect the current chrome version in the browser

  • v1.0.1
  • 37.41
  • Published

dotfile-regex

Regular expresson for matching dotfiles.

  • v1.0.2
  • 37.36
  • Published

is-apng

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

  • v1.2.0
  • 37.30
  • Published

cursor-position

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

  • v1.0.1
  • 37.29
  • 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
  • 37.27
  • Published

webext-detect

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

  • v5.3.2
  • 37.25
  • Published

pitchfinder

A pitch-detection library for node and the browser

  • v2.3.2
  • 36.97
  • Published

browserama

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

  • v3.2.2
  • 36.78
  • 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
  • 36.78
  • Published

match-words

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

  • v1.0.0
  • 36.64
  • Published

polyfill-io-feature-detection

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

  • v1.1.15
  • 36.57
  • Published

ngx-unused-css

Detect unused CSS in angular components

  • v4.0.0-1
  • 36.55
  • Published

react-ad-block-detect

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

  • v1.0.1
  • 36.53
  • Published

use-mobile-detect-hook

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

  • v1.0.5
  • 36.52
  • Published

is-internet-available

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

  • v3.1.0
  • 36.52
  • Published

is-html-content

The simplest way for detecting HTML content.

  • v1.0.0
  • 36.40
  • Published

supports-webp-sync

Checks if the browser supports WebP. Cheaply and synchronously.

  • v1.1.3
  • 36.24
  • Published

language-detect

Detect the programming language of any file.

  • v1.1.0
  • 36.15
  • Published

v-offline

Offline and Online components for Vue

  • v3.5.0
  • 35.76
  • 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
  • 35.52
  • Published

is-7zip

Check if a Buffer/Uint8Array is a 7ZIP file

  • v2.0.0
  • 35.49
  • Published

detect-mocha

Detect if Mocha is running

  • v0.1.0
  • 35.45
  • Published

is-appveyor

Check if Node script is running on AppVeyor

  • v1.0.0
  • 35.35
  • Published

containerized

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

  • v1.0.2
  • 35.30
  • Published

valid-directory

Check whether or not a directory and its descendants are valid

  • v4.9.0
  • 35.14
  • Published

ngx-connection-service

Detects whether browser has an active internet connection or not in Angular application.

  • v18.0.0
  • 35.05
  • Published

license-sniffer

Detect the license of node.js projects and their dependencies

  • v0.1.2
  • 35.03
  • Published

is-xml

Check if a string is XML

  • v0.1.0
  • 34.96
  • Published

@scrypted/coreml

Scrypted CoreML Object Detection

    • v0.1.83
    • 34.78
    • Published

    res

    Device resolution detection module

    • v0.4.0
    • 34.73
    • Published

    is-safari

    Check if browser is Safari

    • v1.0.0
    • 34.66
    • Published

    env-sense

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

    • v1.0.1
    • 34.61
    • Published

    github-url-detection

    Which GitHub page are you on? Is it an issue? Is it a list? Perfect for your WebExtension or userscript.

    • v10.2.1
    • 34.53
    • Published

    is-rar

    Check if a Buffer/Uint8Array is a RAR file

    • v2.0.0
    • 34.42
    • Published

    @dekkai/env

    Utility methods to detect runtimes and load modules dynamically.

    • v1.1.0
    • 34.27
    • Published

    is-npm-cli

    Check if your code is running as an npm script

    • v2.0.0
    • 34.23
    • Published

    detectizr

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

    • v2.2.0
    • 33.96
    • Published

    cldpre

    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

    • v2.9.0
    • 33.91
    • Published

    mime2ext

    Convert a mime type to a file extension. It works only with popular mime types and it's super lightweight.

    • v2.0.1
    • 33.89
    • Published

    is-heroku

    Check if your code is running on Heroku

    • v3.0.0
    • 33.73
    • Published

    prop-detect

    detect the properties in one lib

    • v1.1.0
    • 33.66
    • Published

    @scrypted/objectdetector

    Scrypted Video Analysis Plugin. Installed alongside a detection service like OpenCV or TensorFlow.

      • v0.1.72
      • 33.65
      • Published

      @theodorejb/color-detect

      Convert CSS color strings to RGBA and check whether they are light or dark

      • v2.0.0
      • 33.64
      • Published

      @moderation-api/sdk

      Automatically moderate your content with Moderation API

      • v1.4.0
      • 33.61
      • Published

      dot-only-hunter

      Hunt down `.only`s before it's too late.

      • v1.0.3
      • 33.60
      • Published

      is-css-color

      Check if a given string is css compatible color value

      • v1.0.0
      • 33.45
      • Published

      has-emoji

      Check whether a string has any emoji

      • v3.0.0
      • 33.25
      • Published

      ngx-responsive

      Superset of RESPONSIVE DIRECTIVES to show or hide items according to the size of the device screen and another features in Angular 9

      • v9.0.3
      • 33.10
      • Published

      is-node-stream

      Strictly and correctly checks if value is a nodejs stream.

      • v1.0.0
      • 32.89
      • Published

      debug-mode

      Detect if a Node.js process is in the debug mode.

      • v2.0.3
      • 32.71
      • Published

      file-type-cjs-fix

      A CommonJS port from the ESM file-type package. Now fixed to not have 'tarHeaderChecksumMatches' error!

        • v1.1.1
        • 32.70
        • Published

        ios-version

        Detect the current iOS version in the browser

        • v1.0.1
        • 32.68
        • Published

        languages.io

        Multi Languages Detection for Text-Mining and Natural Language Processing - True ITK - Open Source

        • v0.9.1
        • 32.67
        • Published

        @depack/detect

        Detects Dependencies In The Source File.

        • v1.1.0
        • 32.64
        • Published

        @dvlden/is-webview

        Detect if a visitor is coming through a webview or a native browser using user-agent.

          • v1.0.0
          • 32.50
          • Published

          preferred-locale

          Get the users' most preferred locale/language from your app's available translations with zero dependencies

          • v2.0.2
          • 31.99
          • Published

          traditional-or-simplified

          Detect if a string contains traditional or simplified Chinese characters.

          • v1.0.3
          • 31.92
          • Published

          fiftyone.devicedetection

          Parse HTTP headers to detect the device type, model, operating system, browser, and crawler information

          • v4.4.210
          • 31.85
          • Published

          is-webp

          Check if a Buffer/Uint8Array is a WebP image

          • v2.0.0
          • 31.66
          • Published

          @sgtpooki/file-type

          An *Ackchyually* browser compatible file-type hacky replacement of the `file-type` package. Forked from https://github.com/sindresorhus/file-type

          • v1.0.1
          • 31.56
          • Published

          has-package-lock

          Check if a `package-lock.json` is present in the working directory

          • v2.0.0
          • 31.50
          • Published

          is-pdf

          Check if a Buffer/Uint8Array is a 7ZIP file

          • v1.0.0
          • 31.49
          • Published

          franc-cli

          CLI to detect the language of text

          • v8.0.0
          • 31.35
          • Published

          caniuse-pnpm

          Check if pnpm is available.

          • v2.0.0
          • 31.32
          • Published

          detect-bundler

          Detects browser and React Native source-code bundlers

            • v1.1.0
            • 31.23
            • Published

            is-success

            Check if a number is a HTTP success status code

            • v1.0.0
            • 31.05
            • Published

            has-lockfile

            Detect lockfiles in the working directory

            • v4.0.0
            • 30.80
            • Published

            is-symlink-sync

            Synchronously check if a file is a symbolic link

            • v2.0.0
            • 30.68
            • Published

            has-pnpm

            Check if a project is using pnpm.

            • v1.1.1
            • 30.66
            • Published

            internet-available

            A module to verify if there's an active internet connection with Node.js

            • v1.0.0
            • 30.49
            • Published

            rpi-version

            Detect raspberry pi revision

            • v1.4.3
            • 30.45
            • Published

            is-tif

            Check if a Buffer/Uint8Array is a TIFF image

            • v2.0.0
            • 30.44
            • Published

            get-file-type-es5

            Detect the file type of a Buffer/Uint8Array in ES5 (can be used for browser and create-react-app

            • v7.4.0
            • 30.40
            • Published

            browser-report

            Report browser settings like whatsmybrowser.org.

            • v2.2.12
            • 30.07
            • Published

            ng2-responsive

            Superset of RESPONSIVE DIRECTIVES to show or hide items according to the size of the device screen and another features in Angular 2

            • v0.8.4
            • 29.98
            • Published

            @esm2cjs/is-ip

            Check if a string is an IP address. This is a fork of sindresorhus/is-ip, but with CommonJS support.

            • v4.0.0
            • 29.96
            • Published

            is-jxr

            Check if a Buffer/Uint8Array is a JPEG XR image

            • v2.0.0
            • 29.77
            • Published

            image-loaded

            Call a callback when an image has loaded - adapted from desandro/imagesloaded

            • v0.0.2
            • 29.74
            • Published

            is-bmp

            Check if a Buffer/Uint8Array is a BMP image

            • v2.0.0
            • 29.68
            • Published

            is-psd

            Check if a Buffer/Uint8Array is a PSD image

            • v2.0.0
            • 29.64
            • Published

            has-ext

            Check if a filepath has extension(s)

            • v1.0.1
            • 29.57
            • Published

            who-am-i-now

            Platform detection: NodeJS? React? ReactNative? Expo? etc.

            • v2.1.1
            • 29.54
            • Published

            screen-size-detector

            A small utility to detect screen (viewport) size (resolution height and width) and listener to resize event with additional features

            • v1.0.4
            • 29.47
            • Published

            mrz-scan

            Server side mrz (Machine Readable Zone) scanner.

            • v1.2.0
            • 29.41
            • Published

            on-new-line

            Hijacks NodeJS Stream and emits events when newline(s) written to the output.

            • v1.0.0
            • 29.36
            • Published

            ua2os

            Detect the OS from a User-Agent string.

            • v2.0.2
            • 29.11
            • Published

            javascript-retina-detect

            Javascript detect retina screen (javascript detect device pixel ratio / density)

            • v0.1.4
            • 29.11
            • Published

            image-size-stream

            Detect the width and height of images in a stream

            • v1.1.0
            • 28.77
            • Published

            detect-engine

            Detect whether you're running on node.js or io.js

            • v1.1.0
            • 28.57
            • Published

            buddy.js

            Magic number detector for javascript

            • v0.9.3
            • 28.39
            • Published

            is-progressive

            Check if JPEG images are progressive

            • v5.0.1
            • 28.38
            • Published

            is-travis

            Check if your code is running on Travis

            • v3.0.0
            • 28.23
            • Published

            has-shrinkwrap

            Check if `npm-shrinkwrap.json` is present in the working directory

            • v1.0.0
            • 27.91
            • Published

            vue-device-detect

            检测设备类型,根据设备类型渲染内容

              • v1.0.3
              • 27.78
              • Published

              @grepp/detect-gpu

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

              • v5.0.79
              • 27.65
              • Published

              is-real-image

              is-real-image is a lightweight and efficient Node.js package that allows you to verify if a file is a real image based on its extension, signature (magic number), or both. This package ensures that the provided image file is valid by checking the file's e

              • v1.1.1
              • 27.65
              • Published

              @cityssm/is-pdf

              Check if a Buffer/Uint8Array is a PDF file.

              • v2.0.0
              • 27.53
              • Published

              adblock-checker

              Check if the current web browser has any ad blockers (AdBlock, Adblock Plus, uBlock, AdGuard, ...) enabled.

              • v0.2.4
              • 27.45
              • Published

              sentinel-js

              JS library that detects new DOM nodes using CSS selectors

              • v0.0.7
              • 27.41
              • Published

              @kelvdra/file-type

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

              • v1.1.0
              • 27.40
              • Published

              @scrypted/onnx

              Scrypted ONNX Object Detection

                • v0.1.127
                • 27.37
                • Published

                @esm2cjs/is-online

                Check if the internet connection is up. This is a fork of sindresorhus/is-online, but with CommonJS support.

                • v10.0.0
                • 27.30
                • Published

                swipe-detect

                A touchevent swipe detection utility for JavaScript applications.

                • v1.0.1
                • 26.95
                • Published

                bpm-detective

                Detects the BPM of a song or audio sample

                • v2.0.5
                • 26.88
                • Published

                @scrypted/opencv

                Scrypted OpenCV Motion Detection Service.

                  • v0.0.92
                  • 26.85
                  • Published

                  is-rtp

                  Check if a Buffer is a RTP/RTCP message.

                  • v2.0.0
                  • 26.40
                  • Published

                  type-files

                  > Detect the file type of a base64 The file type is detected by checking the [magic number] of the base64.

                  • v1.0.3
                  • 26.33
                  • Published

                  @viablelogic/ngx-responsive

                  Superset of RESPONSIVE DIRECTIVES to show or hide items according to the size of the device screen and another features in Angular 15

                  • v13.0.0
                  • 26.28
                  • Published

                  amdextract

                  Uses AST to extract AMD modules, their parts and an optimized output without unused dependencies while keeping the original format.

                  • v3.0.0
                  • 26.13
                  • Published

                  @smartbear/browser-info

                  Tiny developer-friendly JS library that provides information about host browser

                  • v2.0.0
                  • 25.78
                  • Published

                  ienv

                  Is Env - Environment Detecter

                  • v2.0.0
                  • 25.72
                  • Published

                  w-mousekey

                  An operator for mouse and keyboard in nodejs.

                  • v1.0.7
                  • 25.62
                  • Published

                  haz-touch

                  Is it a touchable device?

                  • v1.1.2
                  • 25.61
                  • Published

                  font-detect-rhl

                  A React Hook Library for Detecting Fonts

                  • v1.1.8
                  • 25.56
                  • Published

                  refresh-rate

                  Get the monitor refresh rate.

                  • v1.0.0
                  • 25.22
                  • Published

                  is-video-web

                  Check if a filepath is a video file in a web browser

                  • v2.0.1
                  • 25.21
                  • Published

                  @thi.ng/tensors

                  0D/1D/2D/3D/4D tensors with extensible polymorphic operations and customizable storage

                  • v0.10.0
                  • 25.14
                  • Published

                  detect-font

                  Detect which font your system has cherry-picked from font-family.

                  • v0.1.5
                  • 25.07
                  • Published

                  is-webgl-enabled

                  Detect if WebGL is enabled in the current environment.

                  • v1.0.2
                  • 24.91
                  • Published