Socket
Socket
Sign inDemoInstall

isup

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isup

Check if a website is up or down


Version published
Weekly downloads
4
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

isup

With isup you can easily check if a website is up or down.

Getting started

First, you need to install:

npm install -g isup

Then, you can use it both from the command line and as a module.

cli

isup github.com

// github.com is up
// github.com is down

Node.js

Note: when using that as a module, it's better to install it locally and also use the '--save' flag.

var isup = require('isup');

var url = 'github.com';

isup(url)
    .then(function(result) {
        var upOrDown = result === true ? 'up' : 'down';
        console.log(url + ' is ' + upOrDown);
    })
    .catch(function(error) {
        console.error(error.toString());
    });
Enjoy!

Keywords

FAQs

Package last updated on 13 Feb 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc