Stop using the uuid JavaScript library!

You, web development
Back

If you've been creating unique ids using the uuid JavaScript library, there's now a better way.

Simply use the following command directly in your project.

const myID = crypto.randomUUID()

Each time you run it you will get a new unique id.

Best of all, it is mostly supported by all the major browsers.

Checkout the MDN reference for detailed information and for supported browsers.

© Emil Krautmann.RSS