Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 470 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 470 Bytes

Short Unique ID (UUID) - @wackfx edition

Heavily inspired (with chunks of codes from) short-unique-id by jeanlescure.

Rewritten to be compatible with Cloudflare workers - no dependencies - only pure JS.


Use it

import ShortUUID from 'wacky-ids'
const UUID = ShortUUID({ dictionary: 'alphanum' })
console.log(UUID.randomUUID()) // by default - random 6 uuid
console.log(UUID.randomUUID(10))