UNPKG

566 BTypeScriptView Raw
1/**
2 * Generate randomized strings of a specified length using simple character sequences. The original generate-password.
3 */
4declare function randomatic(pattern: string, length?: number, options?: randomatic.Options): string;
5declare function randomatic(pattern: string, options?: randomatic.Options): string;
6declare function randomatic(length: number): string;
7
8declare namespace randomatic {
9 const isCrypto: boolean;
10
11 interface Options {
12 chars?: string | undefined;
13 exclude?: string | string[] | undefined;
14 }
15}
16
17export = randomatic;