{"library":"universal-url","type":"library","category":null,"description":"The `universal-url` package provides a robust and consistent implementation of the WHATWG `URL` and `URLSearchParams` APIs, ensuring their availability across diverse JavaScript environments, including Node.js (versions 6 and above) and web browsers. This library intelligently determines whether to leverage the native `URL` implementation (available in Node.js versions `>= 8`) or to transparently apply a polyfill using the `whatwg-url` package for environments lacking native support, such as older Node.js versions (`< 8`) and some web browsers. The current stable version is 2.0.0. While a specific release cadence isn't detailed, updates typically align with bug fixes or evolutions in the underlying WHATWG URL specification. Its key differentiator is providing a singular, abstracted API layer that allows developers to write URL parsing and manipulation code once, confident that it will behave identically regardless of the execution environment, eliminating the need for conditional imports or polyfill management.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","uri","url","whatwg"],"last_verified":"Wed May 27","install":[{"cmd":"npm install universal-url","imports":["const {URL, URLSearchParams} = require('universal-url');","require('universal-url').shim();"]},{"cmd":"yarn add universal-url","imports":[]},{"cmd":"pnpm add universal-url","imports":[]}],"homepage":null,"github":"https://github.com/stevenvachon/universal-url","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/universal-url","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/universal-url/compatibility"}}