JSPM

Found 1225 results for detect scroll in react

react-device-detect

Detect device type and render your component according to it

  • v2.2.3
  • 104.34
  • Published

detect-port

Node.js implementation of port detector

  • v2.1.0
  • 101.53
  • Published

use-scroll-direction

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

  • v1.1.4
  • 101.02
  • Published

is-builtin-module

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

  • v5.0.0
  • 97.91
  • Published

is-docker

Check if the process is running inside a Docker container

  • v4.0.0
  • 96.19
  • Published

is-wsl

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

  • v3.1.0
  • 95.98
  • Published

environment

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

  • v1.1.0
  • 95.91
  • 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
  • 95.84
  • Published

supports-color

Detect whether a terminal supports color

  • v10.2.2
  • 94.58
  • Published

is-interactive

Check if stdout or stderr is interactive

  • v2.0.0
  • 94.17
  • Published

is-ci

Detect if the current environment is a CI server

  • v4.1.0
  • 90.97
  • Published

detect-indent

Detect the indentation of code

  • v7.0.2
  • 90.87
  • Published

has-flag

Check if argv has a specific flag

  • v5.0.1
  • 89.74
  • Published

is-fullwidth-code-point

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

  • v5.1.0
  • 89.48
  • Published

esniff

Low footprint ECMAScript source code parser

  • v2.0.1
  • 89.34
  • Published

is-stream

Check if something is a Node.js stream

  • v4.0.1
  • 87.45
  • Published

ci-info

Get details about the current Continuous Integration environment

  • v4.3.1
  • 86.45
  • Published

is-binary-path

Check if a file path is a binary file

  • v3.0.0
  • 85.54
  • Published

path-root-regex

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

  • v0.1.2
  • 85.51
  • Published

has-yarn

Check if a project is using Yarn

  • v4.0.0
  • 84.83
  • 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
  • 83.99
  • Published

is-in-ci

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

  • v2.0.0
  • 83.71
  • Published

file-type

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

  • v21.0.0
  • 83.30
  • Published

is-typedarray

Detect whether or not an object is a Typed Array

  • v1.0.0
  • 81.92
  • Published

is-generator-fn

Check if something is a generator function

  • v3.0.0
  • 81.57
  • Published

encoding-japanese

Convert and detect character encoding in JavaScript

  • v2.2.0
  • 81.51
  • Published

detect-browser

Unpack a browser type and version from the useragent string

  • v5.3.0
  • 79.90
  • Published

detect-node

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

  • v2.1.0
  • 79.65
  • Published

knip

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

  • v5.66.4
  • 79.39
  • Published

is-inside-container

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

  • v1.0.0
  • 79.14
  • Published

is-npm

Check if your code is running as an npm script

  • v6.1.0
  • 78.72
  • Published

detect-node-es

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

  • v1.1.0
  • 77.95
  • Published

is64bit

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

  • v2.0.0
  • 77.91
  • Published

is-lambda

Detect if your code is running on an AWS Lambda server

  • v1.0.1
  • 77.87
  • Published

p-is-promise

Check if something is a promise

  • v4.0.0
  • 76.15
  • Published

is-text-path

Check if a file path is a text file

  • v3.0.0
  • 76.11
  • Published

is-ip

Check if a string is an IP address

  • v5.0.1
  • 75.91
  • 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
  • 75.91
  • Published

run-node

Run the Node.js binary no matter what

  • v3.0.0
  • 75.84
  • Published

detect-file

Detects if a file exists and returns the resolved filepath.

  • v1.0.0
  • 75.69
  • Published

typical

Isomorphic, functional type-checking for Javascript

  • v7.3.0
  • 74.83
  • Published

is-network-error

Check if a value is a Fetch network error

  • v1.3.0
  • 73.86
  • Published

cpu-features

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

  • v0.0.10
  • 73.25
  • 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
  • 72.58
  • Published

is-gzip

Check if a Buffer/Uint8Array is a GZIP file

  • v2.0.0
  • 72.57
  • Published

is-redirect

Check if a number is a redirect HTTP status code

  • v2.0.0
  • 72.15
  • Published

globalyzer

Detect and extract the static part of a glob string

  • v0.1.4
  • 71.94
  • Published

undeclared-identifiers

find undeclared identifiers and property accesses in a javascript file.

  • v1.1.3
  • 71.61
  • Published

detect-gpu

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

  • v5.0.70
  • 71.41
  • Published

electron-is-dev

Check if Electron is running in development

  • v3.0.1
  • 71.08
  • Published

istextorbinary

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

  • v9.5.0
  • 69.79
  • Published

is-svg

Check if a string is SVG

  • v6.1.0
  • 69.73
  • Published

archive-type

Detect the archive type of a Buffer/Uint8Array

  • v4.0.0
  • 69.45
  • Published

is-observable

Check if a value is an Observable

  • v3.0.0
  • 69.37
  • Published

is-wayland

Check if the current Linux session is using Wayland

  • v0.1.0
  • 68.23
  • Published

mobile-detect

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

  • v1.4.5
  • 68.13
  • Published

is-fn

Check if a value is a function

  • v3.0.0
  • 67.22
  • 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
  • 67.20
  • Published

is-window

Checks if the given value is a window object.

  • v1.0.2
  • 66.45
  • Published

dpdm

Analyze circular dependencies in your JavaScript/TypeScript projects.

  • v3.14.0
  • 66.40
  • Published

is-alphanumeric

Check if a string only contains alphanumeric characters

  • v1.0.0
  • 66.27
  • Published

is-png

Check if a Buffer/Uint8Array is a PNG image

  • v3.0.1
  • 66.18
  • Published

is-scoped

Check if a string is a scoped npm package name

  • v3.0.0
  • 65.78
  • Published

detect-it

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

  • v4.0.1
  • 64.92
  • Published

is-online

Check if the internet connection is up

  • v12.0.1
  • 64.67
  • Published

is-podman

Check if the process is running inside a Podman container

  • v1.0.1
  • 64.57
  • Published

is-jpg

Check if a Buffer/Uint8Array is a JPEG image

  • v3.0.0
  • 63.77
  • Published

is-gif

Check if a Buffer/Uint8Array is a GIF image

  • v4.0.1
  • 63.69
  • 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
  • 63.13
  • Published

is-tar

Check if a Buffer/Uint8Array is a TAR file

  • v1.0.0
  • 62.97
  • Published

is-html

Check if a string is HTML

  • v3.2.0
  • 62.92
  • Published

capability

capability.js - javascript environment capability detection

  • v0.2.5
  • 62.77
  • 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
  • 62.55
  • Published

estree-is-function

check if an AST node is a function of some sort

  • v1.0.0
  • 62.09
  • Published

is-blob

Check if a value is a `Blob`

  • v3.0.0
  • 61.70
  • Published

is-reachable

Check if servers are reachable

  • v6.0.0
  • 61.36
  • Published

is-firefox

Check if browser is Firefox

  • v1.0.3
  • 60.97
  • Published

is-cwebp-readable

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

  • v3.0.0
  • 60.86
  • Published

is-emoji-supported

Detect if the current device support the specified emoji

  • v0.0.5
  • 60.80
  • Published

is-iexplorer

Check if browser is Internet Explorer

  • v1.0.0
  • 60.52
  • Published

franc

Detect the language of text

  • v6.2.0
  • 60.28
  • Published

resolve-accept-language

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

  • v3.1.13
  • 59.58
  • Published

any

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

  • v1.0.0
  • 59.03
  • Published

@thi.ng/checks

Collection of 70+ type, feature & value checks

  • v3.7.23
  • 58.99
  • Published

inapp-spy

detect in-app browsers

  • v5.0.6
  • 58.98
  • Published

crlf-normalize

Detect and Normalize the newline characters

  • v1.0.20
  • 58.41
  • Published

@1natsu/wait-element

Detect the appearance of an element in the browser DOM

  • v4.1.2
  • 58.39
  • Published

is-nil

Checks if the given value is null or undefined

  • v1.0.1
  • 58.26
  • Published

has-async-hooks

check if the current node version has async_hooks.

  • v1.0.0
  • 58.24
  • Published

dpdm-fast

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

  • v1.0.14
  • 58.01
  • Published

file-type-checker

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

  • v1.1.6
  • 57.95
  • Published

who-am-i-now

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

  • v2.1.1
  • 57.89
  • Published

franc-min

Detect the language of text

  • v6.2.0
  • 57.43
  • Published

is-native

Checks if the given value is a native function.

  • v1.0.1
  • 57.03
  • Published

is-zip

Check if a Buffer/Uint8Array is a ZIP file

  • v1.0.0
  • 56.74
  • Published

image-type

Detect the image type of an ArrayBuffer/Uint8Array

  • v6.0.0
  • 56.70
  • Published

is-node

Detect if current process is a node application or not.

  • v1.1.1
  • 56.56
  • Published

supports-webp

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

  • v3.0.0
  • 56.54
  • 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
  • 56.35
  • Published

audio-type

Detect the audio type of a Buffer/Uint8Array

  • v2.2.1
  • 56.11
  • Published

is-bzip2

Check if a Buffer/Uint8Array is a BZIP2 file

  • v1.0.0
  • 56.09
  • Published

detect-installed

Checks that given package is installed globally or locally.

  • v2.0.4
  • 56.06
  • Published

isbot-fast

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

  • v1.2.0
  • 55.70
  • Published

syllable

Count syllables in English words

  • v5.0.1
  • 55.69
  • Published

is-elevated

Check if the process is running with elevated privileges

  • v4.0.0
  • 55.66
  • Published

valid-filename

Check if a string is a valid filename

  • v4.0.0
  • 55.11
  • Published

upath2

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

  • v3.1.20
  • 54.89
  • Published

detect-pointer

JavaScript wrapper for pointer and any-pointer media queries

  • v1.0.3
  • 54.80
  • Published

project-name

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

  • v1.0.0
  • 54.72
  • Published

detect-touch-events

Detect if the browser supports the touch events api

  • v2.0.2
  • 54.70
  • Published

react-ad-block-detect

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

  • v1.0.1
  • 54.50
  • Published

detect-hover

JavaScript wrapper for hover and any-hover media queries

  • v1.0.3
  • 54.26
  • Published

withinviewport

Determine whether an element is completely within the browser viewport

  • v3.0.1
  • 53.91
  • Published

hash-runner

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

  • v4.0.0
  • 53.69
  • Published

devtools-detect

Detect if DevTools is open and its orientation

  • v4.0.2
  • 53.48
  • 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
  • 53.18
  • Published

@arcjet/runtime

Arcjet runtime detection

  • v1.0.0-beta.13
  • 53.05
  • 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
  • 52.89
  • Published

wasm-check

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

  • v2.1.2
  • 52.74
  • Published

has-dom

Check if a JavaScript environment has a DOM

  • v2.0.0
  • 52.58
  • Published

browser-detect

Simplify detecting your browser

  • v0.2.28
  • 52.57
  • 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
  • 51.91
  • Published

feature-detect-es6

Detect which ES6 (ES2015 and above) features are available

  • v1.5.0
  • 51.73
  • Published

ng-connection-service

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

  • v13.0.2
  • 51.55
  • Published

detect-repo-changelog

Scans a repository directory, searching for a changelog file

  • v1.0.1
  • 51.45
  • Published

is-admin

Check if the process is running as administrator on Windows

  • v4.0.0
  • 51.41
  • Published

get-doc

Get document, if there’s DOM.

  • v1.0.4
  • 51.38
  • Published

scroll-swipe

a lightweight Events API for detecting scroll and touch events based on custom sensitivity

  • v0.0.19
  • 51.16
  • Published

detect-ts-node

Detect whether the code is running in TS Node

  • v1.0.5
  • 50.41
  • Published

enable

ES6 and ES7 feature detection.

  • v3.4.0
  • 50.25
  • Published

@file-type/xml

XML detection plugin for file-type

  • v0.4.4
  • 50.14
  • Published

tinyld

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

  • v1.3.4
  • 50.02
  • Published

use-mobile-detect-hook

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

  • v1.0.5
  • 49.93
  • Published

bad-words-next

JavaScript/TypeScript filter and checker for bad words aka profanity

  • v3.1.1
  • 49.28
  • Published

@scrypted/objectdetector

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

    • v0.1.73
    • 49.20
    • Published

    is-image

    Check if a file path is an image

    • v4.0.0
    • 48.86
    • Published

    mime-kind

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

    • v4.0.0
    • 48.25
    • 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.8
    • 48.19
    • Published

    estree-is-require

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

    • v1.0.0
    • 48.17
    • Published

    package-license

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

    • v0.4.1
    • 48.14
    • Published

    find-cycle

    find and identify a cycle in a directed graph

    • v1.1.0
    • 47.91
    • Published

    is-stun

    Check if a Buffer is a STUN message.

    • v2.0.0
    • 46.30
    • Published

    is-executable

    Check whether a file can be executed

    • v2.0.1
    • 46.28
    • 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
    • 45.80
    • Published

    is-array-like

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

    • v1.1.2
    • 45.76
    • Published

    connectivity

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

    • v1.0.2
    • 45.66
    • Published

    dotdir-regex

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

    • v1.0.1
    • 45.58
    • Published

    is-otf

    Check if a String/Buffer/ArrayBuffer is OTF

    • v0.1.2
    • 45.54
    • Published

    is-ttf

    Check if a String/Buffer is TTF

    • v0.2.2
    • 45.38
    • Published

    detect-eol

    Quickly detect the EOL used in a string.

    • v3.0.1
    • 45.26
    • Published

    franc-all

    Detect the language of text

    • v7.2.0
    • 45.23
    • Published

    is-video

    Check if a file path is a video file

    • v2.0.0
    • 45.19
    • Published

    webext-detect

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

    • v5.3.2
    • 44.93
    • Published

    i18n-lint

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

    • v1.1.0
    • 44.86
    • Published

    platform-detect

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

    • v3.0.1
    • 44.68
    • Published

    sleuth

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

    • v0.1.1
    • 44.38
    • Published

    is-binary

    Detects if a file is binary based on its content

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

    pitchfinder

    A pitch-detection library for node and the browser

    • v2.3.2
    • 43.78
    • Published

    @poeticode/scroll-swipe

    a lightweight Events API for detecting scroll and touch events based on custom sensitivity

    • v0.1.2
    • 42.99
    • Published

    ua_parser

    check browser and browser's version from userAgent

    • v1.2.9
    • 42.61
    • Published

    polyfill-io-feature-detection

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

    • v1.1.15
    • 42.59
    • Published

    element-ready

    Detect when an element is ready in the DOM

    • v9.0.0
    • 42.57
    • Published

    is-woff

    Check if a Buffer/Uint8Array is WOFF

    • v1.0.3
    • 42.51
    • Published

    debug-mode

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

    • v2.0.3
    • 42.48
    • Published

    rsa-key

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

    • v0.0.6
    • 42.23
    • Published

    is-flac

    Check if a Buffer/Uint8Array is a FLAC file.

    • v1.1.2
    • 42.20
    • Published

    is-woff2

    Check if a buffer/Uint8Array is a woff2 file

    • v1.0.0
    • 42.12
    • Published

    word-regex

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

    • v0.1.2
    • 42.07
    • Published

    is-eot

    Check if a Buffer/Uint8Array is EOT

    • v1.0.0
    • 42.02
    • 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
    • 42.01
    • Published

    ced

    Detect the character encoding using Google’s compact_enc_det library

    • v2.0.0
    • 41.84
    • Published

    ngx-unused-css

    Detect unused CSS in angular components

    • v4.0.0-1
    • 41.83
    • 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
    • 41.73
    • Published

    @scrypted/coreml

    Scrypted CoreML Object Detection

      • v0.1.83
      • 41.71
      • Published

      is-wav

      Check if a Buffer/Uint8Array is a wav file.

      • v1.1.2
      • 41.64
      • Published

      jsinspect

      Detect structural similarities in your code

      • v0.12.7
      • 41.54
      • Published

      is-ogg

      Check if a Buffer/Uint8Array is an OGG file.

      • v1.1.2
      • 41.47
      • Published

      @d-fischer/detect-node

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

      • v3.0.1
      • 41.43
      • Published

      detect-bundler

      Detects browser and React Native source-code bundlers

        • v1.1.0
        • 41.32
        • Published

        is-index

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

        • v1.0.2
        • 41.21
        • Published

        is-m4a

        Check if a Buffer/Uint8Array is a m4a file.

        • v1.0.2
        • 41.21
        • Published

        ngx-connection-service

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

        • v18.0.0
        • 41.15
        • Published

        is-mp3

        Check if a Buffer/Uint8Array is a MP3 file.

        • v1.1.3
        • 41.03
        • Published

        react-native-user-detector-active-inactive

        React Native component that notifies if the user is active state or inactive sate (i.e. when the app surface hasn't been touched for more than a certain amount of second than it will be move to Inactive State means Inactive Screen).

        • v0.0.8
        • 40.61
        • Published

        device-detect

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

        • v1.0.7
        • 40.52
        • Published

        cursor-position

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

        • v1.0.1
        • 40.36
        • Published

        has-emoji

        Check whether a string has any emoji

        • v3.0.0
        • 40.19
        • Published

        file-reader

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

        • v1.1.1
        • 39.91
        • Published

        @qawolf/ci-info

        Get details about the current Continuous Integration environment

        • v2.1.0
        • 39.67
        • Published

        match-words

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

        • v1.0.0
        • 39.45
        • Published

        react-is-online-context

        React context provider and hook to check if the internet connection is up

        • v1.0.5
        • 39.42
        • Published

        license-sniffer

        Detect the license of node.js projects and their dependencies

        • v0.1.2
        • 39.18
        • 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.13
        • Published