</>PackageGraphPackageGraph

urlpattern-polyfill

npmv10.1.0TypeScript

Polyfill 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

51 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

javascriptFull 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:
Example truncated — see the full README.

Dependencies

Declared by urlpattern-polyfill v10.1.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (6)

@ava/typescript ^4.0.0ava ^5.3.0esbuild ^0.17.19rimraf ^5.0.1typescript ^5.1.3wireit ^0.9.5

Used by

Popular packages that depend on urlpattern-polyfill.

Relationship graph

Dependencies (left) and dependents (right) of urlpattern-polyfill.

@edge-runtime/pri…webdriveriopuppeteer-coreurlpattern-polyfi…
urlpattern-polyfill dependencies dependents

Frequently installed together

Release history

1 release in the last two years, typically about 23 days apart.

Recent versions of urlpattern-polyfill
VersionPublishedSizeLicense
10.1.0latest1 year ago51 KBMIT
10.0.02 years ago49 KBMIT
9.0.03 years ago47 KBMIT
8.0.23 years ago100 KBMIT
8.0.13 years ago100 KBMIT
7.0.03 years ago87 KBMIT
6.0.23 years ago87 KBMIT
6.0.14 years ago87 KBMIT
5.0.94 years ago86 KBMIT
5.0.84 years ago86 KBMIT
5.0.64 years ago86 KBMIT
5.0.54 years ago86 KBMIT
5.0.44 years ago86 KBMIT
5.0.34 years ago85 KBMIT
5.0.24 years ago85 KBMIT

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.