Skip to content
JS
Package category

DOM and browser utilities

Query, observe, scroll, drag, clipboard and other browser helpers.

983 packages17 comparisons

Packages compared

983 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
attempt-x
Invokes function, returning an object of the results.
10.8k+6%-7 years ago
2.1.2
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
load-script2
Dynamic script loading for modern browsers
10.7k-7%-5 years ago
2.0.6
CommonJSNoneDOM and browser utilities
smooth-scroll-to
Smooth scroll to library
10.6k+70%-3 years ago
0.5.1
ESM + CommonJSBundledDOM and browser utilities
@nosferatu500/react-dnd-scrollzone
A cross browser solution to scrolling during drag and drop.
10.5k---4 years ago
3.0.0
ESM + CommonJSBundledDOM and browser utilities, React
scrollreveal
Animate elements as they scroll into view
10.4k-19%-5 years ago
4.0.9
ESM + CommonJSNoneAnimation, DOM and browser utilities
react-scroll-to-top
A lightweight and customizable button component that scrolls to the top of a page when pressed The button is only visible once a certain height has been reached on the page
10.4k+12%-1 year ago
3.1.0
CommonJSBundledReact, DOM and browser utilities
xmldom-alpha
A W3C Standard XML DOM(Level2 CORE) implementation and parser(DOMParser/XMLSerializer).
10.3k+7%-9 years ago
0.1.28
CommonJSNoneParsers and serialisers, DOM and browser utilities
scroll-doc
Feature detected access to the scroller element
10.3k+32%-8 years ago
0.2.1
CommonJSNoneDOM and browser utilities
is-function-x
Determine whether a given value is a function object.
10.3k+8%-7 years ago
4.1.2
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
is-object-like-x
Determine if a value is object like.
10.3k+18%-7 years ago
2.1.2
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
vue-smooth-dnd
Vue wrappers for smooth-dnd
10.2k+21%-6 years ago
0.8.1
ESM + CommonJSNoneDOM and browser utilities, Vue
ng-sortable
Angular Library for Drag and Drop, supports Sortable and Draggable.
10.1k+30%-9 years ago
1.3.8
CommonJSNoneAngular, DOM and browser utilities
ngx-vflow
<div align="center">
10.1k+655%-22 days ago
2.7.0
ESM + CommonJSBundledAngular, TypeScript tooling
is-array-buffer-x
Detect whether or not an object is an ArrayBuffer.
10.1k+25%-7 years ago
2.1.2
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
image-in-browser
Package for encoding / decoding images, transforming images, applying filters, drawing primitives on images on the client side (no need for server Node.js)
10k+2505%-1 month ago
3.6.0
ESM onlyBundledImage processing, Animation
dom-node-iterator
A portable NodeIterator polyfill.
9.9k+747%-6 years ago
5.0.0
CommonJSNoneDOM and browser utilities, Polyfills and shims
dom-anchor-text-quote
Convert between DOM Range instances and text quotes.
9.9k+908%-9 years ago
4.0.2
CommonJSNoneDOM and browser utilities
to-string-tag-x
Get an object's ES6 @@toStringTag.
9.8k+14%-7 years ago
2.1.2
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
scrollbarwidth
Get scrollbar width.
9.8k-4%-8 years ago
0.1.3
CommonJSNoneDOM and browser utilities
to-integer-x
ToInteger converts 'argument' to an integral numeric value.
9.7k-5%-7 years ago
4.2.2
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
to-string-x
ES6-compliant shim for ToString.
9.7k+6%-7 years ago
2.1.1
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
to-boolean-x
Converts argument to a value of type Boolean.
9.6k+17%-7 years ago
2.1.1
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
trim-x
This method removes whitespace from the left and right end of a string.
9.6k+8%-7 years ago
4.1.2
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
trim-left-x
This method removes whitespace from the left end of a string.
9.6k+8%-7 years ago
4.1.2
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
@livechat/dom-utils
DOM utility functions
9.6k---4 years ago
0.2.6
ESM + CommonJSBundledDOM and browser utilities, Utility libraries
trim-right-x
This method removes whitespace from the end of a string.
9.6k+12%-7 years ago
4.1.2
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
normalize-space-x
Trims and replaces sequences of whitespace characters by a single space.
9.5k+13%-7 years ago
4.1.2
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
replace-comments-x
Replace the comments in a string.
9.5k+13%-7 years ago
3.1.2
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
is-finite-x
ES6-compliant shim for Number.isFinite.
9.4k-0%-7 years ago
4.2.1
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
cached-constructors-x
Constructors cached from literals.
9.4k+14%-7 years ago
2.2.1
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
math-clamp-x
Clamp a number to limits.
9.3k+9%-7 years ago
3.2.2
ESM + CommonJSNoneNumbers and maths, DOM and browser utilities
is-index-x
Determine whether the passed value is a zero based index.
9.3k+15%-7 years ago
2.1.2
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
to-property-key-x
Converts argument to a value that can be used as a property key.
9.3k+19%-7 years ago
3.1.2
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
require-coercible-to-string-x
Requires an argument is corecible then converts using ToString.
9.3k-2%-7 years ago
2.1.1
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
property-is-enumerable-x
Indicates whether the specified property is enumerable.
9.3k+14%-7 years ago
2.1.2
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
nan-x
The constant NaN derived mathematically by 0 / 0.
9.3k+14%-7 years ago
2.2.1
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
infinity-x
The constant value Infinity.
9.3k+15%-7 years ago
2.2.1
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
white-space-x
List of ECMAScript white space characters.
9.2k+0%-7 years ago
4.1.1
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
react-compat-moveable
A React Compat Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Pinchable, Groupable, Snappable.
9.2k-11%-3 years ago
0.33.0
ESM + CommonJSBundledReact, DOM and browser utilities
dragselect
Easy JavaScript library for selecting and moving elements. With no dependencies. Drag-Select & Drag-And-Drop.
9.2k+17%-11 months ago
3.1.2
ESM + CommonJSBundledDOM and browser utilities
jquery-visible
Quickly check if an element is within the browsers visible viewport, regardless of scroll position. If a user can see this element, the function will return true.
9.2k+105%-9 years ago
1.2.0
CommonJSNoneDOM and browser utilities
fullpage.js
Create beautiful fullscreen snap scrolling websites
9.1k-14%-6 months ago
4.0.41
CommonJSBundledDOM and browser utilities
react-scrollable-anchor
Provide smooth scrolling anchors in React.
9.1k-54%-8 years ago
0.6.1
CommonJSNoneReact, DOM and browser utilities
has-own-property-x
Used to determine whether an object has an own property with the specified property key.
9.1k-3%-7 years ago
4.1.2
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
drag-drop
HTML5 drag & drop for humans
9k-69%-5 years ago
7.2.0
CommonJSNoneDOM and browser utilities
react-fine-uploader
React UI components for using Fine Uploader in a React-based project.
9k+36%-8 years ago
1.1.1
CommonJSNoneReact, UI component libraries
is-nan-x
ES6-compliant shim for Number.isNaN - the global isNaN returns false positives.
8.9k+15%-7 years ago
2.1.1
ESM + CommonJSNoneDOM and browser utilities, Node.js utilities
@f5-sales-demo/pi-natives
Native Rust bindings for grep, clipboard, image processing, syntax highlighting, PTY, and shell operations via N-API
8.9k---1 day ago
21.43.8
ESM + CommonJSBundledImage processing, DOM and browser utilities
withinviewport
Determine whether an element is completely within the browser viewport
8.8k+157%-3 years ago
3.0.1
ESM + CommonJSBundledDOM and browser utilities
@xmpp/time
XMPP Date and Time Profiles for JavaScript
8.8k---10 months ago
0.14.0
ESM onlyNoneDate and time, Node.js utilities

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.

  • attempt-xInvokes function, returning an object of the results.
  • load-script2Dynamic script loading for modern browsers
  • smooth-scroll-toSmooth scroll to library
  • @nosferatu500/react-dnd-scrollzoneA cross browser solution to scrolling during drag and drop.
  • scrollrevealAnimate elements as they scroll into view
  • react-scroll-to-topA lightweight and customizable button component that scrolls to the top of a page when pressed The button is only visible once a certain height has been reached on the page
  • xmldom-alphaA W3C Standard XML DOM(Level2 CORE) implementation and parser(DOMParser/XMLSerializer).
  • scroll-docFeature detected access to the scroller element
  • is-function-xDetermine whether a given value is a function object.
  • is-object-like-xDetermine if a value is object like.
  • vue-smooth-dndVue wrappers for smooth-dnd
  • ng-sortableAngular Library for Drag and Drop, supports Sortable and Draggable.
  • ngx-vflow<div align="center">
  • is-array-buffer-xDetect whether or not an object is an ArrayBuffer.
  • image-in-browserPackage for encoding / decoding images, transforming images, applying filters, drawing primitives on images on the client side (no need for server Node.js)
  • dom-node-iteratorA portable NodeIterator polyfill.
  • dom-anchor-text-quoteConvert between DOM Range instances and text quotes.
  • to-string-tag-xGet an object's ES6 @@toStringTag.
  • scrollbarwidthGet scrollbar width.
  • to-integer-xToInteger converts 'argument' to an integral numeric value.
  • to-string-xES6-compliant shim for ToString.
  • to-boolean-xConverts argument to a value of type Boolean.
  • trim-xThis method removes whitespace from the left and right end of a string.
  • trim-left-xThis method removes whitespace from the left end of a string.
  • @livechat/dom-utilsDOM utility functions
  • trim-right-xThis method removes whitespace from the end of a string.
  • normalize-space-xTrims and replaces sequences of whitespace characters by a single space.
  • replace-comments-xReplace the comments in a string.
  • is-finite-xES6-compliant shim for Number.isFinite.
  • cached-constructors-xConstructors cached from literals.
  • math-clamp-xClamp a number to limits.
  • is-index-xDetermine whether the passed value is a zero based index.
  • to-property-key-xConverts argument to a value that can be used as a property key.
  • require-coercible-to-string-xRequires an argument is corecible then converts using ToString.
  • property-is-enumerable-xIndicates whether the specified property is enumerable.
  • nan-xThe constant NaN derived mathematically by 0 / 0.
  • infinity-xThe constant value Infinity.
  • white-space-xList of ECMAScript white space characters.
  • react-compat-moveableA React Compat Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Pinchable, Groupable, Snappable.
  • dragselectEasy JavaScript library for selecting and moving elements. With no dependencies. Drag-Select & Drag-And-Drop.
  • jquery-visibleQuickly check if an element is within the browsers visible viewport, regardless of scroll position. If a user can see this element, the function will return true.
  • fullpage.jsCreate beautiful fullscreen snap scrolling websites
  • react-scrollable-anchorProvide smooth scrolling anchors in React.
  • has-own-property-xUsed to determine whether an object has an own property with the specified property key.
  • drag-dropHTML5 drag & drop for humans
  • react-fine-uploaderReact UI components for using Fine Uploader in a React-based project.
  • is-nan-xES6-compliant shim for Number.isNaN - the global isNaN returns false positives.
  • @f5-sales-demo/pi-nativesNative Rust bindings for grep, clipboard, image processing, syntax highlighting, PTY, and shell operations via N-API
  • withinviewportDetermine whether an element is completely within the browser viewport
  • @xmpp/timeXMPP Date and Time Profiles for JavaScript