hwid icon indicating copy to clipboard operation
hwid copied to clipboard

Grab the system's unique hardware ID

💻 HWID

Node.js CI NPM version NPM downloads

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
}