password
password(
length?,options?):string
Defined in: src/token.ts:102
A random password. With requireEach the result holds at least one character
from every enabled class, then gets shuffled so their positions are random.
Parameters
Section titled “Parameters”length?
Section titled “length?”number = 16
options?
Section titled “options?”PasswordOptions = {}
Returns
Section titled “Returns”string
Example
Section titled “Example”password(); // "vK8mQ2xL9pT4nR7c"password(24, { symbols: true, requireEach: true });password(12, { uppercase: false, symbols: false });