package
Synchronously check if a URL exists.
npm install url-exist-syncGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Synchronously check if a URL exists.
If you are able to run this in an asynchronous context, I highly recommended that you do so with url-exist since synchronous web requests can hang/freeze clients.
npm install url-exist-syncimport urlExistSync from "url-exist-sync"
urlExistSync("https://google.com")
//=> true
urlExistSync("https://google.com/404ingURL")
//=> false
urlExistSync("notaurl")
//=> falseType: string
The URL to check.
Estimated unpacked size across 7 packages.
95.6 kB
Includes dependencies.