page-exists

    1.0.0 • Public • Published

    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.

    Install

    npm i page-exists

    DownloadsWeekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    5.49 kB

    Total Files

    7

    Last publish

    Collaborators

    • nukeop