@augment-vir/common
Version:
A collection of augments, helpers types, functions, and classes for any JavaScript environment.
19 lines (18 loc) • 667 B
TypeScript
/**
* All letters allowed in {@link randomString}.
*
* @category Random : Util
* @category Package : @augment-vir/common
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
*/
export declare const allowedRandomStringLetters: ReadonlyArray<string>;
/**
* Creates a random string (including letters and numbers) of a given length.
*
* This function uses cryptographically secure randomness.
*
* @category Random
* @category Package : @augment-vir/common
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
*/
export declare function randomString(generatedStringLength?: number): string;