
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
check-network-status
Advanced tools
A Node.js Module to check whether you are connected to network or not. Returns a promise resolves to true with network access and to false without network access.
npm install check-network-status
Note: Requires Node >= 8.0.0
With Default Options
{
timeout: 4500,
backUpURL: null,
pingDomain: 'google.com',
method: 'GET'
}
const { checkNetworkStatus } = require('check-network-status');
checkNetworkStatus().then(value => console.log(value));
// prints 'true' or 'false' depending on networking connectivity
With Options
const { checkNetworkStatus } = require('check-network-status');
checkNetworkStatus({
timeout: 3000,
backUpURL: 'https://example.com',
pingDomain: 'github.com',
method: 'GET'
}).then(value => console.log(value));
// prints 'true' or 'false' depending on networking connectivity
v1.2.0 -> v1.2.3 includes following changes
v1.1.3 -> v1.2.0 breaking changes include
Renamed option url
to backUpURL
Added option method
that accepts HTTP methods to be used while requesting backUpURL
. It defaults to GET
.
We updated the network check API to cloudflare DNS query API, you need to pass the pingDomain option if you don't want to use default value google.com
FAQs
Check whether you are connected to Network or not
We found that check-network-status demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.