Перейти к содержимому
Русский

RandomStringOptions

Это содержимое пока не доступно на вашем языке.

RandomStringOptions = object

Defined in: src/util/RandomString.ts:42

Which character classes randomString draws from. Every class defaults to enabled, so randomString(12) is alphanumeric.

There is deliberately no letters flag: it would overlap with the two case flags and admit states with no meaning — letters: false alongside upperCase: true, or letters: true with both cases off. Three orthogonal classes have no such state, and “letters” is simply lowerCase || upperCase.

readonly optional digits?: boolean

Defined in: src/util/RandomString.ts:48

Include 09. Default true.


readonly optional lowerCase?: boolean

Defined in: src/util/RandomString.ts:44

Include az. Default true.


readonly optional upperCase?: boolean

Defined in: src/util/RandomString.ts:46

Include AZ. Default true.