Napping Peanut Monsters

    @types/randomatic
    TypeScript icon, indicating that this package has built-in type declarations

    3.1.3 • Public • Published

    Installation

    npm install --save @types/randomatic

    Summary

    This package contains type definitions for randomatic (https://github.com/jonschlinkert/randomatic).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/randomatic.

    index.d.ts

    // Type definitions for randomatic 3.1
    // Project: https://github.com/jonschlinkert/randomatic
    // Definitions by: Frelia <https://github.com/execfera>
    //                 Piotr Błażejewicz <https://github.com/peterblazejewicz>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    /**
     * Generate randomized strings of a specified length using simple character sequences. The original generate-password.
     */
    declare function randomatic(pattern: string, length?: number, options?: randomatic.Options): string;
    declare function randomatic(pattern: string, options?: randomatic.Options): string;
    declare function randomatic(length: number): string;
    
    declare namespace randomatic {
        const isCrypto: boolean;
    
        interface Options {
            chars?: string | undefined;
            exclude?: string | string[] | undefined;
        }
    }
    
    export = randomatic;

    Additional Details

    • Last updated: Sat, 31 Jul 2021 22:31:25 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Frelia, and Piotr Błażejewicz.

    Keywords

    none

    Install

    npm i @types/randomatic

    DownloadsWeekly Downloads

    18,535

    Version

    3.1.3

    License

    MIT

    Unpacked Size

    4.52 kB

    Total Files

    4

    Last publish

    Collaborators

    • types