URLPattern Polyfill
JSON →The `urlpattern-polyfill` package provides a robust and standards-compliant polyfill for the emerging URLPattern Web API, designed to bring powerful URL matching capabilities to environments lacking native support. Currently at version 10.1.0, this project is actively maintained, with releases typically following updates to the URLPattern specification and bug fixes. A key differentiator is its rigorous adherence to the official web platform test suite, ensuring functional parity with native browser implementations. This enables developers to utilize `URLPattern` for complex routing logic in web applications, service workers, and Node.js backend services without concerns about environment fragmentation. The polyfill integrates intelligently, only applying itself to `globalThis` if `URLPattern` is not already defined, preventing conflicts and ensuring efficient resource usage.
Traffic · last 30 days ↓85% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇳🇴 Norway · 🇩🇪 Germany · 🇮🇹 Italy