Uuid
util.uuid : object
Unique ID generators.
Kind: static namespace of util
- .uuid :
object- .v4() ⇒
string - .short([length]) ⇒
string
- .v4() ⇒
uuid.v4() ⇒ string
Generate a UUID string
Kind: static method of uuid
Returns: string - UUID v4 with dashes: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
uuid.short([length]) ⇒ string
Generate a short random alphanumeric string.
Kind: static method of uuid
Returns: string - A string of length length, from the character set "acdefhjkmnpqrtuvwxy0123456789".
| Param | Type | Default | Description |
|---|---|---|---|
| [length] | number |
16 |
String character count. |