https://github.com/draeder/hardwareid
Return the computer serial number, along with username, platform and hardware architecture
https://github.com/draeder/hardwareid
hardware-id hid serial-number username
Last synced: 28 days ago
JSON representation
Return the computer serial number, along with username, platform and hardware architecture
- Host: GitHub
- URL: https://github.com/draeder/hardwareid
- Owner: draeder
- License: mit
- Created: 2022-07-12T22:57:56.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-13T13:30:00.000Z (almost 3 years ago)
- Last Synced: 2025-03-15T11:46:10.858Z (about 2 months ago)
- Topics: hardware-id, hid, serial-number, username
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HardwareId
## Return the computer serial number, along with username, platform and hardware architecture
Works on Mac, Windows, Linux, FreeBSD## Install
```js
npm i hardwareid
```## Usage
```js
import hardwareid from "hardwareid"let sn = await hardwareid()
console.log(sn)
```This outputs:
```js
{
username: 'SomeUsername',
serial: 'ABCDEFGH12345',
platform: 'darwin',
arch: 'x64'
}
```## Credit
[@bresnow](https://github.com/bresnow/chainlocker)