Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 422 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 422 Bytes

machine-uuid

Get machine's hardware UUID on supported platform. If all else fails, then persist a randomly generated uuid in file $homedir/.nodemid

Install

npm install machine-uuid --save

Basic example

require("machine-uuid")(function(uuid) {
  console.log(uuid)
})

# Or using Promise
const machineUuid = require("machine-uuid")
machineUuid().then((uuid)=>console.log(uuid))