Skip to content

Create an example to generate UUID v7 #20

@aleung

Description

@aleung
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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions