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

steam-sysreq

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

steam-sysreq - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

index.d.ts

@@ -1,7 +0,1 @@

declare const formattedOsNames: Record<string, string>;
declare const sizes: string[];
declare const base: number;
declare function formatBytes(bytes: number): string;
interface SystemRequirements {

@@ -8,0 +2,0 @@ os: string;

17

index.js

@@ -0,1 +1,3 @@

'use strict';
import { osInfo, cpu, mem, graphics, fsSize } from 'systeminformation';

@@ -14,3 +16,3 @@

sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
base = 1024;
logBase = Math.log(1024);

@@ -23,8 +25,5 @@ /**

function formatBytes(bytes) {
if (typeof bytes !== 'number' || isNaN(bytes))
throw new TypeError("Argument 'bytes' must be a number.");
const exponent = Math.floor(Math.log(bytes) / logBase);
const exponent = Math.floor(Math.log(bytes) / Math.log(base));
return `${(bytes / Math.pow(base, exponent)).toFixed()} ${sizes[exponent]}`;
return `${(bytes / Math.pow(1024, exponent)).toFixed()} ${sizes[exponent]}`;
}

@@ -55,5 +54,5 @@

return {
os: `${formattedOsNames[osInfo_.platform] ?? osInfo_.platform} ${osInfo_.kernel} (${
osInfo_.distro
} ${osInfo_.release})`,
os: `${formattedOsNames[osInfo_.platform] ?? osInfo_.platform} ${
osInfo_.kernel
} (${osInfo_.distro} ${osInfo_.release})`,
processor: `${cpu_.manufacturer} ${cpu_.brand} @ ${cpu_.speedMax.toFixed(

@@ -60,0 +59,0 @@ 2

{
"name": "steam-sysreq",
"version": "1.0.2",
"version": "1.0.3",
"description": "Gets system requirement information to compare to the ones shown in Steam.",

@@ -11,8 +11,19 @@ "main": "index.js",

},
"keywords": [],
"keywords": [
"steam",
"version"
],
"author": "Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>",
"license": "ISC",
"license": "MIT",
"dependencies": {
"systeminformation": "^5.11.9"
},
"bugs": {
"url": "https://github.com/VoltrexMaster/steam-sysreq/issues"
},
"homepage": "https://github.com/VoltrexMaster/steam-sysreq",
"repository": {
"type": "git",
"url": "git+https://github.com/VoltrexMaster/steam-sysreq"
}
}
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