@helper-modules/random

1.0.0 • Public • Published

@helper-modules/random

Generate random String, Number and color.

Installation

npm i @helper-modules/random

Usage

Syntex

random(length: Number);
  • Params:
    • length:
      • type: Number
      • default: 10
      • description: Length of string

Random Number

random.number(min: Number, max: Number);
  • Params:
    • min:
      • type: Number
      • default: 0
      • description: Minimum number
    • max:
      • type: Number
      • default: 100
      • description: Maximum number

UUID

random.uuid();
  • It uses uuidv4 for generating UUIDs

Random Color

random.color();

Package Sidebar

Install

npm i @helper-modules/random

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

5.35 kB

Total Files

6

Last publish

Collaborators

  • helper-modules