hardwareid

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i hardwareid

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

3.24 kB

Total Files

5

Last publish

Collaborators

  • draeder