Check if a URL exists.
npm install url-exist
Improvements over url-exists
- Promise interface.
- Works cross-platform.
- Smaller install size.
- Typescript support included.
- Catches invalid URLs.
- Actively maintained.
import urlExist from "url-exist"
await urlExist("https://google.com")
//=> true
await urlExist("https://google.com/404ingURL")
//=> false
await urlExist("notaurl")
//=> false
Type: string
The URL to check.