@js-random/string
Version:
A simple and lightweight string randomizer for JavaScript (TypeScript friendly)
15 lines (14 loc) • 473 B
TypeScript
interface IStringOptions {
length?: number;
seed?: string;
filter?: RegExp;
}
/**
* Generates random string
*
* @param optionsOrLength string's length or object-style options
* @param seed (optional) a string to be used as a seed for the new random string
* @param filter to filter the resulting string by
*/
export default function randomString(optionsOrLength?: number | IStringOptions, seed?: string, filter?: RegExp): string;
export {};