evernaut-library-typescript

4.1.0 • Public • Published

Evernaut / library-typescript

The Evernaut library of Typescript code.

Usage

  1. Install the package

    npm i evernaut-library-typescript
  2. Import and use a function

    import createRandomPassword from "evernaut-library-typescript/src/function/create-random-password";
     
    export const DEFAULT_SIGN_IN_CODE_LENGTH = 6;
    export const DEFAULT_SIGN_IN_CODE_VALID_CHARACTERS = "0123456789";
     
    const createRandomSignInCode = (
      {
        length = DEFAULT_SIGN_IN_CODE_LENGTH,
        validCharacters = DEFAULT_SIGN_IN_CODE_VALID_CHARACTERS,
      }{
        validCharacters?: string;
        length?: number;
      } = {
        length: DEFAULT_SIGN_IN_CODE_LENGTH,
        validCharacters: DEFAULT_SIGN_IN_CODE_VALID_CHARACTERS,
      },
    )string =>
      createRandomPassword({
        length,
        validCharacters,
      });
     
    export default createRandomSignInCode;

Process Guides

Reference

Package Sidebar

Install

npm i evernaut-library-typescript

Weekly Downloads

0

Version

4.1.0

License

MIT

Unpacked Size

64.6 kB

Total Files

39

Last publish

Collaborators

  • theneverstill