Skip to content

nukeop/page-exists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

page-exists Build Status

Check if a page can be accessed or returns an error code

Installation

$ npm install --save page-exists

Usage

const pageExists = require('page-exists');
pageExists('https://httpstat.us/200').then(
	exists => console.log(exists)
); //prints true

pageExists('https://httpstat.us/404'.then(
	exists => console.log(exists)
); //prints false

pageExists.many([
	'https://httpstat.us/200',
    'https://httpstat.us/404',
    'https://httpstat.us/500'
]).then(results => console.log(results)); //prints a map of results

About

License

Copyright © 2018, nukeop. Released under the MIT License.

About

Check if a page can be accessed or returns an error code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published