Skip to content
JS
Package category

Polyfills and shims

Backfill missing language and platform features.

622 packages2 comparisons

Packages compared

622 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
@ungap/trim
An trim polyfill for legacy browsers.
13.4k---6 years ago
0.2.0
ESM onlyNonePolyfills and shims
web-streams-ponyfill
Web Streams, based on the WHATWG spec reference implementation
13.4k+64%-8 years ago
1.4.2
CommonJSNonePolyfills and shims
browser-filesaver
Cross-browser implementation of W3C saveAs API
13.3k+44%-10 years ago
1.1.1
CommonJSNonePolyfills and shims
laravel-mix-polyfill
A Laravel Mix extension to include polyfills by using Babel, core-js, and regenerator-runtime
13.3k+107%-5 years ago
3.0.1
CommonJSNonePolyfills and shims
karma-phantomjs-shim
Provides shims for PhantomJS
13.3k-17%-9 years ago
1.5.0
CommonJSNonePolyfills and shims
clipboard-js
A web shim to handle clipboard APIs across browsers using a simple Promise API.
13.2k+59%--
0.3.6
CommonJSNoneDOM and browser utilities, Polyfills and shims
@ungap/event
An Event polyfill for legacy browsers.
13k---6 years ago
0.2.2
ESM onlyNonePolyfills and shims
element-qsa-scope
Return elements matching a selector relative to the current node
13k-9%-8 years ago
1.1.0
CommonJSNonePolyfills and shims
regenerator-preset
Babel preset for easy use of regenerator-transform.
12.8k+47%-3 years ago
0.14.1
CommonJSNonePolyfills and shims
modern-node-polyfills
modern polyfills for node native modules based on jspm-core
12.7k-23%-3 years ago
1.0.0
ESM + CommonJSBundledPolyfills and shims
@ungap/weakset
WeakSet for IE11 and engines with a WeakMap
12.1k---6 years ago
0.2.1
ESM onlyNonePolyfills and shims
formdata-submitter-polyfill
Support the submitter parameter to the FormData constructor in older browsers.
11.7k+40991%-10 months ago
1.0.4
ESM + CommonJSBundledPolyfills and shims
svgxuse
A polyfill that fetches external SVGs referenced in use elements when the browser itself fails to do so.
11.6k-28%-8 years ago
1.2.6
CommonJSNonePolyfills and shims
url-shim
A 1.53kB browser polyfill for the Node.js `URL` and `URLSearchParams` classes
11.5k-10%-6 years ago
1.0.1
ESM + CommonJSBundledPolyfills and shims
fs-copy-file
fs.copyFile ponyfill
11k-32%-8 years ago
2.1.2
CommonJSNonePolyfills and shims
@microsoft/focusgroup-polyfill
A polyfill for the focusgroup HTML attribute.
10.8k---1 month ago
1.6.0
ESM onlyBundledPolyfills and shims
react-web-share
Tiny Web Share API Wrapper with fallback for unsupported browsers
10.7k+14%-3 years ago
2.0.2
ESM + CommonJSBundledReact, Polyfills and shims
@af-utils/scrollend-polyfill
Polyfill for scrollend event
10.5k---27 days ago
0.0.16
ESM onlyBundledPolyfills and shims
rvfc-polyfill
requestVideoFrameCallback polyfill
10.4k+232%-8 months ago
1.0.8
CommonJSNonePolyfills and shims
@web/rollup-plugin-polyfills-loader
Plugin for injecting a polyfills loader to HTML pages
10.4k---2 months ago
3.0.0
ESM + CommonJSBundledBundler plugins and loaders, Polyfills and shims
rollup-plugin-corejs
⚡ include core-js polyfills when bundling with rollup
10.3k+167%-11 months ago
1.0.2
ESM + CommonJSBundledPolyfills and shims, Bundler plugins and loaders
@4lolo/resize-observer-polyfill
A polyfill for the Resize Observer API
10.2k---5 years ago
1.5.2
ESM + CommonJSBundledPolyfills and shims
@okikio/sharedworker
A small mostly spec. compliant polyfill/ponyfill for SharedWorkers, it acts as a drop in replacement for normal Workers, and supports an API surface that matches normal Workers.
10.1k---1 year ago
1.1.0
ESM + CommonJSBundledPolyfills and shims, TypeScript tooling
pad-start
ES spec-compliant String.prototype.padStart shim.
10k+88%-10 years ago
1.0.2
CommonJSNonePolyfills and shims
ric-shim
Shim for requestIdleCallback
9.9k-22%-4 years ago
1.0.1
CommonJSNonePolyfills and shims
dom-node-iterator
A portable NodeIterator polyfill.
9.9k+747%-6 years ago
5.0.0
CommonJSNoneDOM and browser utilities, Polyfills and shims
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
end-with
Determines whether a string ends with the characters of another string.
9.6k-32%-10 years ago
1.0.2
CommonJSNonePolyfills and shims
html-webpack-skip-assets-plugin
a plugin for html-webpack-plugin to skip adding certain output files to the html
9.5k-38%-2 years ago
1.0.4
CommonJSNonePolyfills and shims, TypeScript tooling
blocking-elements
A polyfill for the proposed blocking elements stack API
9.2k+24%-6 years ago
0.1.1
ESM + CommonJSNonePolyfills and shims
stream.finished
Polyfill/shim for stream.finished in node versions < v10
9.1k-30%-7 years ago
1.2.0
CommonJSBundledPolyfills and shims
iterator-helper
Provide helpers that polyfill all methods defined in [iterator helpers proposal](https://github.com/tc39/proposal-iterator-helpers), both for `Iterator` and `AsyncIterator`, and even more.
9k-55%-5 years ago
1.3.4
CommonJSNonePolyfills and shims
storage2
html5 storage interface for node and browser
8.9k-12%-5 years ago
0.1.2
CommonJSNonePolyfills and shims
eyedropper-polyfill
EyeDropper API Polyfill
8.9k+48%-8 months ago
1.1.5
ESM + CommonJSBundledPolyfills and shims
@open-wc/karma-esm
Karma plugin for testing with es modules
8.9k---5 years ago
4.0.0
CommonJSNonePolyfills and shims, Testing
raptor-polyfill
Polyfills for various EcmaScript 5 and EcmaScript 6 methods distributed as CommonJS modules that can be require'd individually or as a whole.
8.9k-6%-8 years ago
1.1.0
CommonJSNonePolyfills and shims
@unes/es5-ext
ECMAScript extensions and shims
8.7k---1 year ago
0.10.64-1
-NonePolyfills and shims
ie-array-find-polyfill
Polyfill to provide array.find on IE.
8.6k-8%-9 years ago
1.1.0
CommonJSNonePolyfills and shims
react-create-ref
React.createRef() polyfill
8.4k-6%-7 years ago
1.0.1
ESM + CommonJSNonePolyfills and shims, React
promise.withresolvers
ES Proposal spec-compliant shim for Promise.withResolvers
8.3k+74%-8 months ago
1.0.4
CommonJSNonePolyfills and shims, Promises and async control flow
fullscreen-polyfill
A simple polyfill implementation of W3C's JavaScript Fullscreen API spec. Don't worry about the vendor specific Fullscreen API.
8.3k+35%-5 years ago
1.0.4
CommonJSNonePolyfills and shims
core-js-url-browser
`core-js`'s `web/url.js` prebundled for the browser
8k-11%-6 years ago
3.6.4
CommonJSNoneURLs and query strings, Polyfills and shims
cross-blob
Cross-platform Blob implementation for NodeJS and the Web.
7.9k-6%-3 years ago
3.0.2
ESM onlyBundledPolyfills and shims
pathseg
A polyfill for SVG's SVGPathSeg and SVGPathSegList
7.8k+23%-5 years ago
1.2.1
CommonJSNonePolyfills and shims
@worker-tools/html-rewriter
WASM-based implementation of Cloudflare's HTML Rewriter for use in Deno, browsers, etc.
7.8k---2 years ago
0.1.0-pre.19
ESM + CommonJSBundledPolyfills and shims, Cloud SDKs
get-user-media-promise
Light-weight wrapper for the newer Promise-based MediaDevices.getUserMedia API with a fallback to navigator.getUserMedia (and it's prefixed variants)
7.7k+31%-8 years ago
1.1.4
CommonJSNonePolyfills and shims
@es-shims/api
Loosely test a package's compliance with the es-shim API
7.7k---5 months ago
4.0.0
CommonJSBundledPolyfills and shims
lfa-ponyfill
Local Font Access Ponyfill for any environment
7.6k+121096%-2 months ago
1.1.1
ESM onlyNonePolyfills and shims
create-react-ref
Polyfill for the proposed React.createRef and React.forwardRef API
7.6k+38%-8 years ago
0.1.0
CommonJSNonePolyfills and shims, React
webassembly-interpreter
WebAssembly interpreter
7.5k-17%-8 years ago
0.0.31
CommonJSNonePolyfills and shims, Parsers and serialisers

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.