
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
A Node.js library wrapper around the ping command for use within Node.js. Unlike the majority of the ping libraries out there, this one returns the actual results of the ping command as well as if the ping was successful. Operating Systems Supported: OS X
A Node.js library wrapper around the ping command for use within Node.js. Unlike the majority of the ping libraries out there, this one returns not only if the ping was considered successful and the host is "alive", it also returns a JSON object containing the actual results of the ping including the actual textual result of the ping command as well as the parsed values for the minimum, average, maximum, and standard deviation for the ping response times.
Operating Systems Supported: OS X, CentOS, Ubuntu (Windows with some more work).
This is an extension of the node-ping library created by Daniel Zelisko (http://github.com/danielzzz/node-ping) credit is due to him for the majority of the code base. If you need a Node.js library that simply returns a boolean value indicating if the host responded to the ping command be sure to check out his library.
npm install ping-stats --save
ping.sys.probe(data.clientIp, function(results, err){
if(err){
logger.error(err, null);
} else {
// TODO: process results object
}
});
var result = {
host: addr, // the host address for the system that was pinged
code: code, // the ping command result code
isAlive: false, // whether or not the host responded and the ping was considered successful
output: outstring, // the actual text that was output by the ping command
stats: {
min = 0; // the minimum ping response time
avg = 0; // the average ping response time
max = 0; // the max ping response time
stddev = 0; // the standard deviation for the ping response time
}
};
FAQs
A Node.js library wrapper around the ping command for use within Node.js. Unlike the majority of the ping libraries out there, this one returns the actual results of the ping command as well as if the ping was successful. Operating Systems Supported: OS X
We found that ping-stats demonstrated a not healthy version release cadence and project activity because the last version was released 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.