node-unique-machine-id
Get the unique machine id (cross-platform, without admin privileges)
Installation
npm install node-unique-machine-id
Usage
; // or async... await...; const id = ;console;//=> 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)