Get machine's hardware UUID on supported platform. If all else fails, then persist a randomly generated uuid in file $homedir/.nodemid
npm install machine-uuid --save
require("machine-uuid")(function(uuid) {
console.log(uuid)
})
# Or using Promise
const machineUuid = require("machine-uuid")
machineUuid().then((uuid)=>console.log(uuid))