paint-brush
Using JavaScript to Create and Generate UUIDsby@smpnjn
13,453 reads
13,453 reads

Using JavaScript to Create and Generate UUIDs

by Johnny Simpson3mNovember 15th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Universally Unique Identifiers (UUIDs) are unique, 128-bit identifiers consisting of 36 characters in the format of '8/4-4/12' The chances of a UUID being a duplicate is not zero, but it is so close that most ignore the risk. In Javascript, there are many ways to create UUIDs with Javascript. The crypto.randomUUID() method is available on the global `this` object on browsers - also known as 'window' It is also available on Node.JS and the UUID package on NPM.
featured image - Using JavaScript to Create and Generate UUIDs
Johnny Simpson HackerNoon profile picture
Johnny Simpson

Johnny Simpson

@smpnjn

Product, Engineering, Web

About @smpnjn
LEARN MORE ABOUT @SMPNJN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Johnny Simpson HackerNoon profile picture
Johnny Simpson@smpnjn
Product, Engineering, Web

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite