node-anyid
node-anyid copied to clipboard
Create an example to generate UUID v7
const ids = anyid()
.encode('h').form('8-4-4-4-12')
.bits(48).time()
.bits(4).fix(4)
.bits(12).seq().resetByTime()
.bits(2).fix(2)
.bits(62).random();