The length of the generated string.
Optionalconfig: { includeNumbers: boolean; includeSymbols: boolean }Configuration options for the string generation.
Whether to include numeric characters (0–9). Defaults to false.
Whether to include symbol characters (e.g., !@#$...). Defaults to false.
A randomly generated string containing uppercase and lowercase letters, and optionally numbers and symbols.
Generates a random string of the specified length, with options to include numbers and symbols.