A lightweight polyfill for the URL and URLSearchParams APIs in environments where they are not natively supported, such as older browsers (IE, legacy Edge) or Node.js versions before v10. Current stable version is 1.1.0. No breaking changes since first release. Simpler than `whatwg-url` — focused solely on browser compatibility without extra parsing logic.
npm install url-api-polyfillNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates side-effect import and usage of global URL and URLSearchParams.
Use `import 'url-api-polyfill'` (no named imports). After import, URL and URLSearchParams are globally available.
Test your specific use cases. Consider using `whatwg-url` or native APIs in modern environments.
Remove the polyfill and use native URL/URLSearchParams. Polyfill conditionally or use a more up-to-date library like `whatwg-url`.
Change to `import 'url-api-polyfill'`.
Ensure the package is installed and imported via `import 'url-api-polyfill'` at the entry point.
No dependency data recorded yet.