hwid
v0.5.0
Published
![Node.js CI](https://github.com/luludotdev/hwid/workflows/Node.js%20CI/badge.svg?branch=master) [![NPM version](https://img.shields.io/npm/v/hwid.svg?maxAge=3600)](https://www.npmjs.com/package/hwid) [![NPM downloads](https://img.shields.io/npm/dt/hwid.s
Downloads
376
Readme
💻 HWID
Grab the system's unique hardware ID!
💾 Installation
This package is published to the NPM registry as hwid
. Install it with your NPM client of choice.
🔧 Usage
First, import the module:
import { getHWID } from 'hwid'
From there, simply call the function. It returns a promise with the hardware ID as a string. As it returns a promise, you can also use it in an async/await context.
// Promises
getHWID().then(id => {
// use ID however you want
})
// async/await
async function main() {
const id = await getHWID()
// use ID however you want
}