0.0.2 • Published 7 years ago
pagenotfound v0.0.2
Checks whether a page exists
const pageNotFound = require('pagenotfound')
pageNotFound('https://www.npmjs.com/package/pagenotfound')
.then(resp => console.log(resp))
// { exists: true }
Also accepts an array of urls
const pageNotFound = require('pagenotfound')
pageNotFound(['https://www.npmjs.com/package/pagenotfound'])
.then(resp => console.log(resp))
// [{ exists: true }]