m.uuid
m(icro)uuid is a lightweight RFC4122v4 compliant uuid implementation written in es6+
install
npm install m.uuid
usage
const uuid = // uses `Math.random()` which is ~25x faster. // b4b1f122-3344-4f1b-961a-023ef51e2693
const uuid = // uses `crypto.randomBytes()` with less chance of collision. // afc2a706-3c77-473b-b2df-ebc356d13fd3