3.1.5 • Published 6 months ago

@types/randomatic v3.1.5

Weekly downloads
35,324
License
MIT
Repository
github
Last release
6 months ago

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.