npm.io
1.0.2 • Published 4 years ago

hardwareid

Licence
MIT
Version
1.0.2
Deps
1
Size
3 kB
Vulns
1
Weekly
0
Stars
1

HardwareId

Return the computer serial number, along with username, platform and hardware architecture

Works on Mac, Windows, Linux, FreeBSD

Install

npm i hardwareid

Usage

import hardwareid from "hardwareid"

let sn = await hardwareid()
console.log(sn)

This outputs:

{
  username: 'SomeUsername',
  serial: 'ABCDEFGH12345',
  platform: 'darwin',
  arch: 'x64'
}

Credit

@bresnow

Keywords