urlpattern-polyfill
npmv10.1.0TypeScriptPolyfill for the URLPattern API
Adopt with care
urlpattern-polyfill is usable, with caveats. Last published 490 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- CMaintenance: grade C, Fair — worth a look.
Last published 490 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 51 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 3 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding urlpattern-polyfill to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the urlpattern-polyfill README.
// Conditional ESM module loading (Node.js and browser)
// @ts-ignore: Property 'UrlPattern' does not exist
if (!globalThis.URLPattern) {
await import("urlpattern-polyfill");
}
/**
* The above is the recommended way to load the ESM module, as it only
* loads it on demand, thus when not natively supported by the runtime or
* already polyfilled.
*/
import "urlpattern-polyfill";
/**
* In case you want to replace an existing implementation with the polyfill:Dependencies
Declared by urlpattern-polyfill v10.1.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (6)
Used by
Popular packages that depend on urlpattern-polyfill.
A set of primitives to build Vercel Edge Runtime.
Next-gen browser and mobile automation test framework for Node.js
A high-level API to control headless Chrome over the DevTools Protocol
Relationship graph
Dependencies (left) and dependents (right) of urlpattern-polyfill.
Frequently installed together
A high-level API to control headless Chrome over the DevTools Protocol
TypeScript definitions for node
Check if a value is a plain object
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
A simple list of CSS shorthand properties and which longhand properties they expand to
A WDIO helper utility to provide a repl interface for WebdriverIO
Programmatic access to the ARIA specification
CSS value parser
TypeScript definitions for @sinonjs/fake-timers
The lodash method `_.cloneDeep` exported as a module.
Utility package providing type information for a variety of WebdriverIO interfaces
A WDIO helper utility to provide several utility functions used across the project.
Release history
1 release in the last two years, typically about 23 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 10.1.0latest | 1 year ago | 51 KB | MIT |
| 10.0.0 | 2 years ago | 49 KB | MIT |
| 9.0.0 | 3 years ago | 47 KB | MIT |
| 8.0.2 | 3 years ago | 100 KB | MIT |
| 8.0.1 | 3 years ago | 100 KB | MIT |
| 7.0.0 | 3 years ago | 87 KB | MIT |
| 6.0.2 | 3 years ago | 87 KB | MIT |
| 6.0.1 | 4 years ago | 87 KB | MIT |
| 5.0.9 | 4 years ago | 86 KB | MIT |
| 5.0.8 | 4 years ago | 86 KB | MIT |
| 5.0.6 | 4 years ago | 86 KB | MIT |
| 5.0.5 | 4 years ago | 86 KB | MIT |
| 5.0.4 | 4 years ago | 86 KB | MIT |
| 5.0.3 | 4 years ago | 85 KB | MIT |
| 5.0.2 | 4 years ago | 85 KB | MIT |
Overview
urlpattern-polyfill is an npm package that polyfill for the URLPattern API. It has 3 known dependents in the graph. The latest version is 10.1.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need polyfill for the URLPattern API and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use urlpattern-polyfill?
urlpattern-polyfill is usable, with caveats. Last published 490 days ago.
How do I install urlpattern-polyfill?
Run `npm install urlpattern-polyfill` to add urlpattern-polyfill to your npm project.
What license is urlpattern-polyfill released under?
urlpattern-polyfill is distributed under the MIT license.
How popular is urlpattern-polyfill?
npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on urlpattern-polyfill.
Is urlpattern-polyfill still maintained?
The most recent release of urlpattern-polyfill (v10.1.0) was published 1 year ago.
Does urlpattern-polyfill run install scripts?
No. urlpattern-polyfill does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.