Last active
February 26, 2024 10:56
-
-
Save SeLub/0b4545517148b7eff91cc1a6a518c47c to your computer and use it in GitHub Desktop.
Revisions
-
SeLub revised this gist
Feb 26, 2024 . 1 changed file with 9 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,4 +6,12 @@ const UUID = url.substring(url.lastIndexOf('/') + 1); ``` https://medium.com/teads-engineering/generating-uuids-at-scale-on-the-web-2877f529d2a2 --- # Generate a UUID in NodeJS ``` const { randomUUID } = require('crypto'); // Added in: node v14.17.0 console.log(randomUUID()); ``` -
SeLub renamed this gist
Feb 20, 2024 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
SeLub revised this gist
Feb 20, 2024 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,9 @@ # Generate a UUID in the browser ``` const url = URL.createObjectURL(new Blob()); const UUID = url.substring(url.lastIndexOf('/') + 1); ``` https://medium.com/teads-engineering/generating-uuids-at-scale-on-the-web-2877f529d2a2 -
SeLub created this gist
Feb 20, 2024 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ # Generate a UUID in the browser ``` const url = URL.createObjectURL(new Blob()); const UUID = url.substring(url.lastIndexOf('/') + 1); ```