JSPM

@sanity/uuid

0.141.0-alpha.12+42f8f1f0a
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 315842
  • Score
    100M100P100Q171235F
  • License MIT

Simple generation of sanity document IDs

Package Exports

  • @sanity/uuid

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sanity/uuid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Sanity UID

Generate a valid Sanity document id

Usage

const UUID = require('./')
const id = UUID()

console.log(uid)
 //=> 76dc5edf-9c43-4bab-a62d-4a2cad650053