Generate 64-Bit (with 63 signigicant bits) k-ordered, conflict-free ids in a distributed environment.
npm install flake-idFlake ID
========
Generate 64-Bit (with 63 signigicant bits) k-ordered, conflict-free ids in a distributed environment.
$ npm install --save git@gitlab.tristianflanagan.com:node-portal/flake-id.git
js
const FlakeId = require('flake-id');
const flakeid = new FlakeId({
epoch: 0,
worker: 0,
datacenter: 0,
seqMask: 0xFFF
});
flakeid.get();
//
``