url-exists

Check if a url exists


Keywords
url, exists
License
MIT
Install
npm install url-exists@1.0.3

Documentation

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
});