normalize-url
10.0.0 · 14 Oct 2026MIT62.8M / weekRepositoryHomepagenpmAtom feed
8.1.1 is the newest release of 8.x.
In short
4 breaking1 new
- Breaking
Require Node.js 14 52f2290
- Breaking
Ignore URLs with custom protocols and just pass them through (#178) 882cb84
- Breaking
ftpprotocol is no longer normalized. It's just passed through. - Breaking
Human-friendly URLs with basic auth is no longer handled as it conflicts with custom protocols
Release note
Breaking
- Breaking
Require Node.js 14 52f2290
- Breaking
Ignore URLs with custom protocols and just pass them through (#178) 882cb84
By default, these protocols are supported:
https,http,file,data.If you need support for a custom protocol that behaves like a HTTP URL, see #179.
- Breaking
ftpprotocol is no longer normalized. It's just passed through. - Breaking
Human-friendly URLs with basic auth is no longer handled as it conflicts with custom protocols
Example:
user:password@sindresorhus.com
Improvements
Make
defaultProtocoloption accept protocol without colon c7fd781You can still pass in a protocol with colon. However, if you use TypeScript, it enforces it without.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.