Now published as @root/uuid
- Node version: https://github.com/therootcompany/uuid.js/blob/main/uuid.js
- Browser version: https://github.com/therootcompany/uuid.js/blob/main/browser.js
This is started out as a curiosity, pasted as a gist but now, years later, I've come back to it because there are too many of these uuid modules out there and they're too complicated.
This, however, is easy to read and understand (for me, at least). Even its tests are dependncy and build-step free.
node-uuid vs crazy-uuid vs fast-uuid