Last active
April 9, 2024 18:22
-
-
Save yishn/e2848eaf4dff34ed031a315130416dae to your computer and use it in GitHub Desktop.
Get shorter UUID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function id() { | |
return crypto.randomUUID().split('-').map(x => parseInt(x, 16).toString(36)).join('') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment