Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths
MIT License
Linkify URLs in a string
Strip the authentication part of a URL
Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev
Normalize a URL
Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`
Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`
Check if a URL is relative
url.parse() with support for protocol-less URLs & IPs
Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev
Check if a URL is absolute
Humanize a URL: https://sindresorhus.com → sindresorhus.com
Check if a string is a URL
Get all urls in a string
Lax `url.format()` that formats a hostname and port into IPv6-compatible socket form of `hostname...
Convert a URL to a valid filename