Skip to content

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

License

Notifications You must be signed in to change notification settings

draeder/hardwareid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published