Universal WHATWG Crypto API random UUID generator for Node and Browsers
# npm
npm install universal-random-uuid
# yarn
yarn add universal-random-uuid
# pnpm
pnpm add universal-random-uuid
// ESM / TypeScript
import { randomUUID } from 'universal-random-uuid';
// CommonJS
const { randomUUID } = require('universal-random-uuid');