uid
Generate a unique identifier
280 bytes
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.