UNPKG

1.23 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/randomatic`
3
4# Summary
5This package contains type definitions for randomatic (https://github.com/jonschlinkert/randomatic).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/randomatic.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/randomatic/index.d.ts)
10````ts
11/**
12 * Generate randomized strings of a specified length using simple character sequences. The original generate-password.
13 */
14declare function randomatic(pattern: string, length?: number, options?: randomatic.Options): string;
15declare function randomatic(pattern: string, options?: randomatic.Options): string;
16declare function randomatic(length: number): string;
17
18declare namespace randomatic {
19 const isCrypto: boolean;
20
21 interface Options {
22 chars?: string | undefined;
23 exclude?: string | string[] | undefined;
24 }
25}
26
27export = randomatic;
28
29````
30
31### Additional Details
32 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
33 * Dependencies: none
34
35# Credits
36These definitions were written by [Frelia](https://github.com/execfera), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).
37
\No newline at end of file