JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 267043
  • Score
    100M100P100Q174024F
  • License MIT

TypeScript definitions for randomstring

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/randomstring) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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

    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 | Charset[] | undefined;
            capitalization?: Capitalization | undefined;
        }
    
        function generate(options?: GenerateOptions | number): string;
    }
    
    declare module "randomstring" {
        export = Randomstring;
    }
    

    Additional Details

    • Last updated: Thu, 04 Apr 2024 18:08:09 GMT
    • Dependencies: none

    Credits

    These definitions were written by Isman Usoh.