New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

page-exists

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

page-exists

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

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
6
100%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

page

FAQs

Package last updated on 27 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts