url-exists

1.0.3 • Public • Published

url-exists

A simple node library to determine if a url exists

Usage

var urlExists = require('url-exists');
 
urlExists('https://www.google.com', function(err, exists) {
  console.log(exists); // true
});
 
urlExists('https://www.fakeurl.notreal', function(err, exists) {
  console.log(exists); // false
});

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i url-exists

    Weekly Downloads

    6,062

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • boblauer