npm.io
1.0.2 • Published 8 years ago

url-exists-promise

Licence
MIT
Version
1.0.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0

url-exists-promise

Check if a url exists in node. Uses a HEAD request.

import { urlExists } from 'url-exists-promise'

urlExists('https://google.com/')
    // probably true
    .then(res => console.log(res))

Keywords