home ~ socials ~ projects ~ rss

Create A UUID In JavaScript

October 2021
const uuid = self.crypto.randomUUID();

Notes

  • Only works in "secure contexts" meaning HTTPS
  • Also works on localhost
end of line
Share link:
https://www.alanwsmith.com/en/20/eo/wa/an/?create-a-uuid-in-javascript