Last active
April 20, 2023 14:14
-
-
Save jkeefe/224764383f20adf0749c79e405d96900 to your computer and use it in GitHub Desktop.
Cool hex time hash for cache busting, unique, etc.
This file contains hidden or 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
const time_hash = Date.now().toString(36); | |
// reverse it for more wordiness: | |
const time_hash2 = Date.now().toString(36).split("").reverse().join("") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment