Socket
Socket
Sign inDemoInstall

hardware-info

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

14

index.d.ts
export function getCpu(): {
total: number;
threads: number;
model: string;

@@ -10,1 +10,13 @@ speed: number;

};
export function getOsArch(): {
arch: string;
};
export function getNetInterfaces(): Array<{
name: string;
addresses: any;
internal?: undefined;
} | {
name: string;
addresses: string;
internal: boolean;
}>;

7

index.js

@@ -33,4 +33,4 @@ import os from 'node:os';

addresses: interfaces[element].map(_interface => ({
path: _interface.address,
internal: _interface.internal,
path: `${_interface.address}`,
internal: Boolean(_interface.internal),
})),

@@ -42,3 +42,4 @@ };

name: element,
addresses: interfaces[element].address,
addresses: `${interfaces[element].address}`,
internal: Boolean(interfaces[element].internal),
};

@@ -45,0 +46,0 @@ });

{
"name": "hardware-info",
"version": "1.0.3",
"version": "1.0.4",
"description": "A lightweight way to get the hardware information.",
"main": "index.js",
"scripts": {
"test": "xo && ava && tsc index.d.ts"
"test": "xo && ava && tsc index.d.ts",
"lint:fix": "xo --fix",
"generate:tsc": "tsc index.js --declaration --emitDeclarationOnly --allowJs --outDir ."
},

@@ -9,0 +11,0 @@ "author": "Paulo Cardoso",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc