A synchronous version of machine-uuid.
Get machine's hardware UUID.
npm install machine-uuid-sync
uuid = require("machine-uuid-sync")();
console.log(uuid);
You can set the location where you want the .nodemid
file to be created if the module can't retrieve the serial number.
uuid = require("machine-uuid")("/another/folder/")
This can example be useful in an electron application when you compile your app in asar.