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

node-unique-machine-id

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-unique-machine-id

**Get the unique machine id (cross-platform, without admin privileges)**

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
425
decreased by-29.28%
Maintainers
1
Weekly downloads
 
Created
Source

node-unique-machine-id

Get the unique machine id (cross-platform, without admin privileges)

Installation

npm install node-unique-machine-id

Usage

import { machineId, machineIdSync } from 'node-unique-machine-id';

// or async... await...
machineId().then(id => {
  console.log(id);
  //=> e7da09af80e39cd1b2af442ce529f90d5f607ed626a31e869ac48c6a6148b4a3
});

const id = machineIdSync(true);
console.log(id);
//=> 98912984-c4e9-5ceb-8000-03882a0485e4

API

machineId(original?:boolean, fallthrough?: boolean)

machineIdSync(original?:boolean, fallthrough?: boolean)

original: default: false. If true return original value of machine id, otherwise return hashed value (sha-256)

fallthrough: default: false. If true, uuid will be generated and saved when there is an error in obtaining (use for Unsupported platforms)

Thanks

  • automation-stack/node-machine-id

  • Get Hardware UUID in Mac OS X

  • The Best Way To Uniquely Identify A Windows Machine - Next of Windows

FAQs

Package last updated on 15 Dec 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc