Package Exports
- machine-uuid
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (machine-uuid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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))