@sanity/uuid
v3.0.3
Published
Simple generation of sanity document IDs
Downloads
3,434,069
Readme
@sanity/uuid
[!WARNING] This package is no longer needed/encouraged - use
crypto.randomUUID()or theuuidnpm module directly.
Generate a valid Sanity document ID (uuid v4 format)
Installation
$ npm install @sanity/uuid
// or
$ yarn add @sanity/uuidUsage
import {uuid} from '@sanity/uuid'
const id = uuid()
console.log(id)
//=> 76dc5edf-9c43-4bab-a62d-4a2cad650053License
MIT © Sanity.io
