Socket
Book a DemoInstallSign in
Socket

are-we-online

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

are-we-online

Simple function to check if we are online.

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
4
100%
Maintainers
1
Weekly downloads
 
Created
Source

Simple function to check if we are online.

Installation:

npm install --safe are-we-online

Usage:

const areWeOnline = require('are-we-online')

areWeOnline(isOnline => {
  if (isOnline) {
    console.log('We are online')
  } else {
    console.log('We are not online')
  }
})

FAQs

Package last updated on 29 Mar 2017

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