Check if a URL is relative
MIT License
Get all urls in a string
Check if a URL is absolute
Check if a path exists
Strip the authentication part of a URL
Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths
Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev
Humanize a URL: https://sindresorhus.com → sindresorhus.com
Check if a string is a URL
Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev
Check if a string is HTML
Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`
Expands symbolic links and prints the resolved absolute filepath
Check if something is a generator function
Check whether a website is up or down
Linkify URLs in a string