Skip to content

uid
280 bytes

Generate a unique identifier

Usage

Generates a unique string with optional special characters.

import * as _ from 'radashi'
_.uid(7) // => UaOKdlW
_.uid(12, '*') // => egFn*THGelM8

Note, this function is optimized for simplicity and usability — not performance or security. If you need to create universally unique or cryptographically random strings use a package specifically for that purpose.