An open API service indexing awesome lists of open source software.

https://github.com/luludotdev/hwid

Grab the system's unique hardware ID
https://github.com/luludotdev/hwid

Last synced: about 1 year ago
JSON representation

Grab the system's unique hardware ID

Awesome Lists containing this project

README

          

# 💻 HWID

![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.svg?maxAge=3600)](https://www.npmjs.com/package/hwid)

> Grab the system's unique hardware ID!

## 💾 Installation

This package is published to the NPM registry as [`hwid`](https://www.npmjs.com/package/hwid). Install it with your NPM client of choice.

## 🔧 Usage

First, import the module:

```js
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.

```js
// Promises
getHWID().then(id => {
// use ID however you want
})

// async/await
async function main() {
const id = await getHWID()
// use ID however you want
}
```