Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an example to generate UUID v7 #20

Open
aleung opened this issue Aug 6, 2021 · 0 comments
Open

Create an example to generate UUID v7 #20

aleung opened this issue Aug 6, 2021 · 0 comments
Labels

Comments

@aleung
Copy link
Owner

aleung commented Aug 6, 2021

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();
@aleung aleung added the feature label Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant