Skip to content

ruang-guru/bs-node-machine-id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bs-node-machine-id

Binding of node-machine-id, Cross-platform unique machine (desktop) id discovery.

Usage

Async

open Js.Promise;

NodeMachineId.machineId()
  |> then_(id => id)

Sync

let id = NodeMachineId.machineIdSync();

Both will generate unique id for your machine. For example, c24b0fe51856497eebb6a2bfcd120247aac0d6334d670bb92e09a00ce8169365

Installation

Use yarn or npm

$ yarn add bs-node-machine-id

Then update your bsconfig.json

{
  "bs-dependencies": ["bs-node-machine-id"]
}

Releases

No releases published

Packages

No packages published

Languages