New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-machine-id

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-machine-id

Unique machine (desktop) id (no admin privileges required).

1.1.12
latest
Source
npm
Version published
Weekly downloads
3.6M
0.32%
Maintainers
1
Weekly downloads
 
Created

What is node-machine-id?

The node-machine-id npm package provides a simple way to uniquely identify a machine. It generates a machine-specific ID that can be used for licensing, authentication, or any other scenario where a unique machine fingerprint is required.

What are node-machine-id's main functionalities?

Synchronous ID retrieval

This feature allows you to synchronously retrieve a unique machine ID.

const { machineIdSync } = require('node-machine-id');
let id = machineIdSync();
console.log(id);

Asynchronous ID retrieval

This feature allows you to asynchronously retrieve a unique machine ID.

const { machineId } = require('node-machine-id');
machineId().then(id => {
  console.log(id);
});

Original value retrieval

This feature allows you to retrieve the original machine ID value without any hashing, providing the raw hardware ID.

const { machineIdSync } = require('node-machine-id');
let originalValue = machineIdSync({original: true});
console.log(originalValue);

Other packages similar to node-machine-id

Keywords

unique id

FAQs

Package last updated on 29 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts