normalize-url
https://github.com/sindresorhus/normalize-url
JavaScript
Normalize a URL
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
JavaScript not yet supported3 Subscribers
Add a CodeTriage badge to normalize-url
Help out
- Issues
- remove paths ending with / with removeDirectoryIndex
- `sortQueryParameters` buggy handling of search parameters
- (suggestion) Remove sub directories
- Percent-decoding entire URL components is not valid
- Add option to normalize custom protocols
- Url pathname is getting encoded after normalization
- Error result when url using custom protocol in browser
- Stripping www. does not work when there is a subdomain in URL
- Semicolons are erroneously encoded in query params
- Docs
- JavaScript not yet supported