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

1.1.12 • 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.

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: Tue, 27 Feb 2024 22:35:43 GMT
  • Dependencies: none

Credits

These definitions were written by Isman Usoh.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/randomstring

      Weekly Downloads

      138,273

      Version

      1.1.12

      License

      MIT

      Unpacked Size

      3.75 kB

      Total Files

      5

      Last publish

      Collaborators

      • types