Package category
Polyfills and shims
Backfill missing language and platform features.
622 packages2 comparisons
Packages compared
622 packages
| Package | Weekly downloads | 12-month change | 52 weeks | Gzip | Last release | Module | Types | Categories |
|---|---|---|---|---|---|---|---|---|
| @ungap/trim An trim polyfill for legacy browsers. | 13.4k | - | - | - | 6 years ago 0.2.0 | ESM only | None | Polyfills and shims |
| web-streams-ponyfill Web Streams, based on the WHATWG spec reference implementation | 13.4k | +64% | - | 8 years ago 1.4.2 | CommonJS | None | Polyfills and shims | |
| browser-filesaver Cross-browser implementation of W3C saveAs API | 13.3k | +44% | - | 10 years ago 1.1.1 | CommonJS | None | Polyfills 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 | CommonJS | None | Polyfills and shims | |
| karma-phantomjs-shim Provides shims for PhantomJS | 13.3k | -17% | - | 9 years ago 1.5.0 | CommonJS | None | Polyfills and shims | |
| clipboard-js A web shim to handle clipboard APIs across browsers using a simple Promise API. | 13.2k | +59% | - | - 0.3.6 | CommonJS | None | DOM and browser utilities, Polyfills and shims | |
| @ungap/event An Event polyfill for legacy browsers. | 13k | - | - | - | 6 years ago 0.2.2 | ESM only | None | Polyfills and shims |
| element-qsa-scope Return elements matching a selector relative to the current node | 13k | -9% | - | 8 years ago 1.1.0 | CommonJS | None | Polyfills and shims | |
| regenerator-preset Babel preset for easy use of regenerator-transform. | 12.8k | +47% | - | 3 years ago 0.14.1 | CommonJS | None | Polyfills 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 + CommonJS | Bundled | Polyfills and shims | |
| @ungap/weakset WeakSet for IE11 and engines with a WeakMap | 12.1k | - | - | - | 6 years ago 0.2.1 | ESM only | None | Polyfills 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 + CommonJS | Bundled | Polyfills 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 | CommonJS | None | Polyfills 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 + CommonJS | Bundled | Polyfills and shims | |
| fs-copy-file fs.copyFile ponyfill | 11k | -32% | - | 8 years ago 2.1.2 | CommonJS | None | Polyfills and shims | |
| @microsoft/focusgroup-polyfill A polyfill for the focusgroup HTML attribute. | 10.8k | - | - | - | 1 month ago 1.6.0 | ESM only | Bundled | Polyfills 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 + CommonJS | Bundled | React, Polyfills and shims | |
| @af-utils/scrollend-polyfill Polyfill for scrollend event | 10.5k | - | - | - | 27 days ago 0.0.16 | ESM only | Bundled | Polyfills and shims |
| rvfc-polyfill requestVideoFrameCallback polyfill | 10.4k | +232% | - | 8 months ago 1.0.8 | CommonJS | None | Polyfills 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 + CommonJS | Bundled | Bundler 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 + CommonJS | Bundled | Polyfills 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 + CommonJS | Bundled | Polyfills 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 + CommonJS | Bundled | Polyfills and shims, TypeScript tooling |
| pad-start ES spec-compliant String.prototype.padStart shim. | 10k | +88% | - | 10 years ago 1.0.2 | CommonJS | None | Polyfills and shims | |
| ric-shim Shim for requestIdleCallback | 9.9k | -22% | - | 4 years ago 1.0.1 | CommonJS | None | Polyfills and shims | |
| dom-node-iterator A portable NodeIterator polyfill. | 9.9k | +747% | - | 6 years ago 5.0.0 | CommonJS | None | DOM and browser utilities, Polyfills and shims | |
| to-string-x ES6-compliant shim for ToString. | 9.7k | +6% | - | 7 years ago 2.1.1 | ESM + CommonJS | None | DOM 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 | CommonJS | None | Polyfills 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 | CommonJS | None | Polyfills 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 + CommonJS | None | Polyfills and shims | |
| stream.finished Polyfill/shim for stream.finished in node versions < v10 | 9.1k | -30% | - | 7 years ago 1.2.0 | CommonJS | Bundled | Polyfills 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 | CommonJS | None | Polyfills and shims | |
| storage2 html5 storage interface for node and browser | 8.9k | -12% | - | 5 years ago 0.1.2 | CommonJS | None | Polyfills and shims | |
| eyedropper-polyfill EyeDropper API Polyfill | 8.9k | +48% | - | 8 months ago 1.1.5 | ESM + CommonJS | Bundled | Polyfills and shims | |
| @open-wc/karma-esm Karma plugin for testing with es modules | 8.9k | - | - | - | 5 years ago 4.0.0 | CommonJS | None | Polyfills 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 | CommonJS | None | Polyfills and shims | |
| @unes/es5-ext ECMAScript extensions and shims | 8.7k | - | - | - | 1 year ago 0.10.64-1 | - | None | Polyfills and shims |
| ie-array-find-polyfill Polyfill to provide array.find on IE. | 8.6k | -8% | - | 9 years ago 1.1.0 | CommonJS | None | Polyfills and shims | |
| react-create-ref React.createRef() polyfill | 8.4k | -6% | - | 7 years ago 1.0.1 | ESM + CommonJS | None | Polyfills and shims, React | |
| promise.withresolvers ES Proposal spec-compliant shim for Promise.withResolvers | 8.3k | +74% | - | 8 months ago 1.0.4 | CommonJS | None | Polyfills 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 | CommonJS | None | Polyfills and shims | |
| core-js-url-browser `core-js`'s `web/url.js` prebundled for the browser | 8k | -11% | - | 6 years ago 3.6.4 | CommonJS | None | URLs 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 only | Bundled | Polyfills and shims | |
| pathseg A polyfill for SVG's SVGPathSeg and SVGPathSegList | 7.8k | +23% | - | 5 years ago 1.2.1 | CommonJS | None | Polyfills 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 + CommonJS | Bundled | Polyfills 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 | CommonJS | None | Polyfills and shims | |
| @es-shims/api Loosely test a package's compliance with the es-shim API | 7.7k | - | - | - | 5 months ago 4.0.0 | CommonJS | Bundled | Polyfills and shims |
| lfa-ponyfill Local Font Access Ponyfill for any environment | 7.6k | +121096% | - | 2 months ago 1.1.1 | ESM only | None | Polyfills and shims | |
| create-react-ref Polyfill for the proposed React.createRef and React.forwardRef API | 7.6k | +38% | - | 8 years ago 0.1.0 | CommonJS | None | Polyfills and shims, React | |
| webassembly-interpreter WebAssembly interpreter | 7.5k | -17% | - | 8 years ago 0.0.31 | CommonJS | None | Polyfills 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.
- @ungap/trimAn trim polyfill for legacy browsers.
- web-streams-ponyfillWeb Streams, based on the WHATWG spec reference implementation
- browser-filesaverCross-browser implementation of W3C saveAs API
- laravel-mix-polyfillA Laravel Mix extension to include polyfills by using Babel, core-js, and regenerator-runtime
- karma-phantomjs-shimProvides shims for PhantomJS
- clipboard-jsA web shim to handle clipboard APIs across browsers using a simple Promise API.
- @ungap/eventAn Event polyfill for legacy browsers.
- element-qsa-scopeReturn elements matching a selector relative to the current node
- regenerator-presetBabel preset for easy use of regenerator-transform.
- modern-node-polyfillsmodern polyfills for node native modules based on jspm-core
- @ungap/weaksetWeakSet for IE11 and engines with a WeakMap
- formdata-submitter-polyfillSupport the submitter parameter to the FormData constructor in older browsers.
- svgxuseA polyfill that fetches external SVGs referenced in use elements when the browser itself fails to do so.
- url-shimA 1.53kB browser polyfill for the Node.js `URL` and `URLSearchParams` classes
- fs-copy-filefs.copyFile ponyfill
- @microsoft/focusgroup-polyfillA polyfill for the focusgroup HTML attribute.
- react-web-shareTiny Web Share API Wrapper with fallback for unsupported browsers
- @af-utils/scrollend-polyfillPolyfill for scrollend event
- rvfc-polyfillrequestVideoFrameCallback polyfill
- @web/rollup-plugin-polyfills-loaderPlugin for injecting a polyfills loader to HTML pages
- rollup-plugin-corejs⚡ include core-js polyfills when bundling with rollup
- @4lolo/resize-observer-polyfillA polyfill for the Resize Observer API
- @okikio/sharedworkerA 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.
- pad-startES spec-compliant String.prototype.padStart shim.
- ric-shimShim for requestIdleCallback
- dom-node-iteratorA portable NodeIterator polyfill.
- to-string-xES6-compliant shim for ToString.
- end-withDetermines whether a string ends with the characters of another string.
- html-webpack-skip-assets-plugina plugin for html-webpack-plugin to skip adding certain output files to the html
- blocking-elementsA polyfill for the proposed blocking elements stack API
- stream.finishedPolyfill/shim for stream.finished in node versions < v10
- iterator-helperProvide 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.
- storage2html5 storage interface for node and browser
- eyedropper-polyfillEyeDropper API Polyfill
- @open-wc/karma-esmKarma plugin for testing with es modules
- raptor-polyfillPolyfills for various EcmaScript 5 and EcmaScript 6 methods distributed as CommonJS modules that can be require'd individually or as a whole.
- @unes/es5-extECMAScript extensions and shims
- ie-array-find-polyfillPolyfill to provide array.find on IE.
- react-create-refReact.createRef() polyfill
- promise.withresolversES Proposal spec-compliant shim for Promise.withResolvers
- fullscreen-polyfillA simple polyfill implementation of W3C's JavaScript Fullscreen API spec. Don't worry about the vendor specific Fullscreen API.
- core-js-url-browser`core-js`'s `web/url.js` prebundled for the browser
- cross-blobCross-platform Blob implementation for NodeJS and the Web.
- pathsegA polyfill for SVG's SVGPathSeg and SVGPathSegList
- @worker-tools/html-rewriterWASM-based implementation of Cloudflare's HTML Rewriter for use in Deno, browsers, etc.
- get-user-media-promiseLight-weight wrapper for the newer Promise-based MediaDevices.getUserMedia API with a fallback to navigator.getUserMedia (and it's prefixed variants)
- @es-shims/apiLoosely test a package's compliance with the es-shim API
- lfa-ponyfillLocal Font Access Ponyfill for any environment
- create-react-refPolyfill for the proposed React.createRef and React.forwardRef API
- webassembly-interpreterWebAssembly interpreter