New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

csgosq

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csgosq - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

12

csgosq.js

@@ -15,2 +15,8 @@ #! /usr/bin/env node

let disposed = false;
const ping = {
min: 9999999,
max: 0,
average: 0,
count: 0,
};
const handler = async () => {

@@ -33,3 +39,7 @@ try {

console.log(`${time}: 地图: ${map}`);
console.log(`${time}: 耗时: ${cost}ms`);
ping.min = Math.min(ping.min, cost);
ping.max = Math.max(ping.max, cost);
ping.average = (ping.average * ping.count + cost) / ++ping.count;
console.log(`${time}: 延迟:${cost.toString().padStart(4, " ")}ms(单次)${Math.floor(ping.average).toString().padStart(4, " ")}ms(平均)`);
console.log(`${time}: 延迟:${ping.min.toString().padStart(4, " ")}ms(最低)${ping.max.toString().padStart(4, " ")}ms(最高)`);
if (players <= minPlayers) {

@@ -36,0 +46,0 @@ clearInterval(timer);

2

package.json
{
"name": "csgosq",
"description": "csgo squeeze",
"version": "0.0.1",
"version": "0.0.2",
"main": "index.js",

@@ -6,0 +6,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc