Noble Pug Mullet

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

    1.1.8 • Public • Published

    Installation

    npm install --save @types/randomstring

    Summary

    This package contains type definitions for randomstring (https://github.com/klughammer/node-randomstring).

    Details

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

    index.d.ts

    // Type definitions for randomstring 1.1.4
    // Project: https://github.com/klughammer/node-randomstring
    // Definitions by: Isman Usoh <https://github.com/isman-usoh/>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    declare namespace Randomstring {
        type Charset = "alphanumeric"
            | "alphabetic"
            | "numeric"
            | "hex"
            | "binary"
            | "octal"
            | string;
        type Capitalization = "lowercase" | "uppercase";
        interface GenerateOptions {
            length?: number | undefined;
            readable?: boolean | undefined;
            charset?: Charset | undefined;
            capitalization?: Capitalization | undefined;
        }
    
        function generate(options?: GenerateOptions | number): string;
    }
    
    declare module "randomstring" {
        export = Randomstring;
    }

    Additional Details

    • Last updated: Fri, 29 Oct 2021 23:01:24 GMT
    • Dependencies: none
    • Global values: Randomstring

    Credits

    These definitions were written by Isman Usoh.

    Keywords

    none

    Install

    npm i @types/randomstring

    DownloadsWeekly Downloads

    107,044

    Version

    1.1.8

    License

    MIT

    Unpacked Size

    4.22 kB

    Total Files

    4

    Last publish

    Collaborators

    • types