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