Champ · Alphanumeric

Champ · Alphanumeric · string.alphanumeric. Méthode de génération · Exemple

string.alphanumeric

Options du générateur

Générez des données pour les voir ici.

Paramètres & Exemple

Generating a string consisting of alpha characters and digits.

string.alphanumeric(options?: number | { length?: NumberOrRange; casing?: Casing; exclude?: ReadonlyArray<LiteralUnion<AlphaNumericChar>> | string; })
options
Either the length of the string to generate or the optional options object.
options.length
The length of the string to generate either as a fixed length or as a length range. Defaults to 1.
options.casing
The casing of the characters. Defaults to 'mixed'.
options.exclude
An array of characters and digits which should be excluded in the generated string. Defaults to [].

Exemple

"F"

Utilisez des données synthétiques dans un environnement de test.

Générateurs associés

Explorer les scénarios