Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

is-online-cli

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-online-cli - npm Package Compare versions

Comparing version
3.1.0
to
4.0.0
+12
-6
cli.js

@@ -18,12 +18,18 @@ #!/usr/bin/env node

`, {
default: {
timeout: 5
flags: {
timeout: {
type: 'number',
default: 5
}
}
});
isOnline({
timeout: cli.flags.timeout * 1000
}).then(online => {
(async () => {
const online = await isOnline({
timeout: cli.flags.timeout * 1000
});
console.log(online ? `${logSymbols.success} Online` : `${logSymbols.error} Offline`);
process.exit(online ? 0 : 1);
});
})();
{
"name": "is-online-cli",
"version": "3.1.0",
"description": "Check if the internet connection is up",
"license": "MIT",
"repository": "sindresorhus/is-online-cli",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bin": {
"is-online": "cli.js"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"cli.js"
],
"keywords": [
"cli-app",
"cli",
"browser",
"online",
"offline",
"is-online",
"network",
"connected",
"connectivity",
"internet",
"is",
"has",
"detect",
"hostname",
"hostnames",
"dns",
"socket",
"reachable",
"reachability",
"accessible"
],
"dependencies": {
"is-online": "^7.0.0",
"log-symbols": "^1.0.0",
"meow": "^3.7.0"
},
"devDependencies": {
"ava": "*",
"execa": "^0.6.1",
"xo": "*"
}
"name": "is-online-cli",
"version": "4.0.0",
"description": "Check if the internet connection is up",
"license": "MIT",
"repository": "sindresorhus/is-online-cli",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bin": {
"is-online": "cli.js"
},
"engines": {
"node": ">=8"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"cli.js"
],
"keywords": [
"cli-app",
"cli",
"browser",
"online",
"offline",
"is-online",
"network",
"connected",
"connectivity",
"internet",
"is",
"has",
"detect",
"hostname",
"hostnames",
"dns",
"socket",
"reachable",
"reachability",
"accessible"
],
"dependencies": {
"is-online": "^8.0.0",
"log-symbols": "^2.2.0",
"meow": "^5.0.0"
},
"devDependencies": {
"ava": "^0.25.0",
"execa": "^1.0.0",
"xo": "^0.23.0"
}
}

@@ -5,3 +5,3 @@ # is-online-cli [![Build Status](https://travis-ci.org/sindresorhus/is-online-cli.svg?branch=master)](https://travis-ci.org/sindresorhus/is-online-cli)

<img src="screenshot.png" width="397">
<img src="screenshot.png" width="397" height="98">

@@ -8,0 +8,0 @@

Sorry, the diff of this file is not supported yet