🌜
🌞

Best JavaScript URL Parsing Libraries

whatwg-url

whatwg-url

v11.0.0

An implementation of the WHATWG URL Standard's URL API and parsing machinery

Last Commit
Jan 28, 2022
GitHub Stargazers
307
License
MIT
Contributors
17
requires-port

requires-port

v1.0.0

Check if a protocol requires a certain port number to be added to an URL.

Last Commit
Mar 23, 2022
GitHub Stargazers
7
License
MIT
Contributors
4
git-up

git-up

v6.0.0

A low level git url parser.

Last Commit
Jul 20, 2022
GitHub Stargazers
13
License
MIT
Contributors
1
url-pattern

url-pattern

v1.0.3

easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.

Last Commit
Nov 17, 2016
GitHub Stargazers
556
License
MIT
Contributors
7
url-regex-safe

url-regex-safe

v3.0.0

Regular expression matching for URL's. Maintained, safe, and browser-friendly version of url-regex. Resolves CVE-2020-7661. Works in Node v10.12.0+ and browsers.

Last Commit
Jan 3, 2022
GitHub Stargazers
54
License
MIT
Contributors
2
tldts

tldts

v5.7.88

Library to work against complex domain names, subdomains and URIs.

Last Commit
Sep 24, 2022
GitHub Stargazers
209
License
MIT
Contributors
17
tldts-experimental

tldts-experimental

v5.7.88

Library to work against complex domain names, subdomains and URIs.

Last Commit
Sep 24, 2022
GitHub Stargazers
209
License
MIT
Contributors
17
mongodb-url

mongodb-url

v3.0.3

MongoDB URL parsing.

Last Commit
Jan 8, 2020
GitHub Stargazers
2
License
Apache-2.0
Contributors
6
url-lib

url-lib

v3.0.3

A simple, lightweight string utility for Node and browsers that supports serializing and parsing URLs and query strings.

Last Commit
Jan 7, 2020
GitHub Stargazers
18
License
MIT
Contributors
1
eth-url-parser

eth-url-parser

v1.0.4

Ethereum url parsing library

Last Commit
Aug 20, 2021
GitHub Stargazers
22
License
MIT
Contributors
1
lite-url

lite-url

v1.0.5

A small cross-browser JS lib for parsing a URL into its component parts (generally follows Chrome's `new URL(parseThisUrl)` API).

Last Commit
-
GitHub Stargazers
28
License
BSD-3-Clause
Contributors
3
tolerant

tolerant

v1.2.0

Overly tolerant url parser specialized in parsing protocol, auth (even invalid ones), host and port url parts.

Last Commit
-
GitHub Stargazers
15
License
MIT
Contributors
1
parse-link

parse-link

v1.0.3

Unified URL parsing API in the browser and node

Last Commit
-
GitHub Stargazers
2
License
MIT
Contributors
2
uri-parse-lib

uri-parse-lib

v2.5.0

Small library for parsing URL.

Last Commit
-
GitHub Stargazers
24
License
MIT
Contributors
1
whatwg-url-without-unicode

whatwg-url-without-unicode

v8.0.0-3

An implementation of the WHATWG URL Standard's URL API and parsing machinery, without unicode support

Last Commit
Sep 12, 2021
GitHub Stargazers
1
License
MIT
Contributors
19
tiny-params

tiny-params

v4.0.0

A tiny URL param parser, suitable for server or browser

Last Commit
-
GitHub Stargazers
5
License
MIT
Contributors
1
get-link

get-link

v1.0.4

Returns a new, absolute URL by parsing the link relative to the base URL. Supports dynamic links. Not vulnerable to Denial-of-Service attacks.

Last Commit
-
GitHub Stargazers
3
License
MIT
Contributors
3
query-str

query-str

v1.1.3

A tool kit for parsing/generating query strings

Last Commit
-
GitHub Stargazers
3
License
MIT
Contributors
1