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

pinging

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pinging

Pinging Js style

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

PingingJS

Pinging, JS style.

PingingJS is a fully-implemented ping function, using raw sockets and when.js.

Please note: using raw-sockets requires root on linux/OSX machines.

Getting PingingJS

npm install pinging

Usage

var ping = require('pinging');

ping('8.8.8.8', {
	count: 4, // send 4 pings,
	timeout: 1000, // timeout ping after 1 second
	payload: 'PingingJSIsAwesome', // send the truth as the ping's payload
})
.then(function (stats) {
	console.log('Pings sent:' + stats.pingsSent);
	console.log('Pings recieved:' + stats.pingsRecieved);
})
.catch(function (err) {
	console.log('This ping had a boo-boo...');
});

For more advanced examples, please see the scripts directory.

How fast is it?

Very.

FAQs

Package last updated on 15 Oct 2014

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