
Product
Introducing Data Exports
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.
url-polyfill
Advanced tools
Compliant in most of the use cases but not at 100% (like unicode chars, punycodes, etc...)
Tested on IE 10+
npm i url-polyfill --save
Documentation: https://developer.mozilla.org/en-US/docs/Web/API/URL
Supported : 'hash', 'host', 'hostname', 'href', 'port', 'protocol', 'search', 'toString', 'pathname', 'origin', 'searchParams'
Example:
const url = new URL('https://www.example.com:8080/?fr=yset_ie_syc_oracle&type=orcl_hpset#page0');
"page0""www.example.com:8080""www.example.com""https://www.example.com:8080/?fr=yset_ie_syc_oracle&type=orcl_hpset#page0""https://www.example.com:8080""/""8080""https:""?fr=yset_ie_syc_oracle&type=orcl_hpset"Documentation: https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
Supported : 'append', 'delete', 'get', 'getAll', 'has', 'set', 'forEach', 'keys', 'values', 'entries', 'toString', 'Symbol.iterator'
Example:
const url = new URL('https://www.example.com/?fr=yset_ie_syc_oracle&type=orcl_hpset#page0');
url.searchParams.append('page', 0);
console.log(url.toString()); // print: "https://www.example.com/?fr=yset_ie_syc_oracle&type=orcl_hpset&page=0#page0"
The whatwg-url package is a full implementation of the WHATWG URL Standard, which is the specification that modern browsers follow. It provides a more comprehensive and standards-compliant URL API compared to url-polyfill, making it suitable for environments where strict adherence to the standard is required.
The url package is a Node.js core module that provides utilities for URL resolution and parsing. While it offers similar functionality to url-polyfill, it is primarily designed for server-side use in Node.js environments, whereas url-polyfill is aimed at providing compatibility in browsers.
FAQs
Polyfill URL and URLSearchParams
The npm package url-polyfill receives a total of 522,816 weekly downloads. As such, url-polyfill popularity was classified as popular.
We found that url-polyfill demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.