JSPM

  • Created
  • Published
  • Downloads 1404
  • Score
    100M100P100Q118577F
  • License MIT

Fast UUID generator with no dependencies. Generate V4 compliant UUIDs using crypto.getRandomValues

Package Exports

  • @cfworker/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 (@cfworker/uuid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@cfworker/uuid

Fast UUID generator with no dependencies. Generate V4 compliant UUIDs using crypto.getRandomValues

usage

import { uuid } from '@cfworker/uuid';

// standard uuid
const id = uuid();

// custom separator
const id2 = uuid('_');

// no separator
const id3 = uuid('');