Binding of node-machine-id, Cross-platform unique machine (desktop) id discovery.
open Js.Promise;
NodeMachineId.machineId()
|> then_(id => id)
let id = NodeMachineId.machineIdSync();
Both will generate unique id for your machine. For example, c24b0fe51856497eebb6a2bfcd120247aac0d6334d670bb92e09a00ce8169365
$ yarn add bs-node-machine-id
{
"bs-dependencies": ["bs-node-machine-id"]
}