4.1.0 • Published 4 years ago

evernaut-library-typescript v4.1.0

Weekly downloads
209
License
MIT
Repository
github
Last release
4 years ago

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

4.1.0

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.2.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago