1.0.5 • Published 6 months ago

hardware-info v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

hardware-info

A lightweight way to get the hardware information.

Install

npm install hardware-info

Usage

import {getCpu, getRam, getOsArch} from 'hardware-info';

console.log(getCpu());
// => { threads: 16, model: 'Intel(R) Core(TM) i7-10700F CPU @ 2.90GHz', speed: 2904 }'

console.log(getRam());
//=> '{ total: '15.93 GB', free: '7.15 GB' }'

console.log(getNetInterfaces());
//=> '[{"name":"Ethernet 7","addresses":[{"path":"fe80::81aa:d714:a0f:90cf","internal":false},{"path":"192.168.56.1","internal":false}]'

console.log(getOsArch());
//=> '{"arch":"x64"}'

Unpacked Size

Less than 5 kB

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago