Need private packages and team management tools?Check out npm Teams »

hwid

0.1.1 • Public • Published

💻 HWID

NPM version NPM downloads Build status Dependencies Coverage Status

Grab the system's unique hardware ID!
Written in TypeScript, compiled down to ES5 for use in any Node.js version!

💾 Installation

The package is on the NPM registry as hwid. Simply install it with your NPM client of choice.

🔧 Usage

First, import the module:

// CommonJS
const { getHWID } = require('hwid')
 
// ES Modules
import { getHWID } from 'hwid'

From there, simply call the function. It returns a promise with the hardware ID as a string.

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

🎉 Options

You can pass options to the function as an optional object.

Key Type Description
hash boolean Hashes the output before returning
algorithm string Hash algorithm to use
upper boolean Return the HWID in uppercase

Keywords

none

Install

npm i hwid

DownloadsWeekly Downloads

51

Version

0.1.1

License

ISC

Unpacked Size

12.8 kB

Total Files

15

Last publish

Collaborators

  • avatar