1.0.1 • Published 5 months ago

js-random-data v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

js-random-data allows you to generate random pieces of data, which can help speed up make concepts for your front-end project

Installation

Install via npm:

npm i js-random-data

Usage

To use js-random-data import any of the needed functions below.

import {
  strGenerator,
  intGenerator,
  nameGenerator,
  productReview,
} from "js-random-data";
console.log(strGenerator(5));
// tbtxb

console.log(intGenerator({ min: 1, max: 10 }));
// 5

console.log(nameGenerator({ type: "both" }));
// Evelyn Miller

console.log(productReview());
// A reliable car GPS. Easy to navigate, and real-time traffic updates are a game-changer.

Parameters

Functionparam1defaultparam2default
strGeneratorlength5
intGeneratormin1max10
nameGeneratortypebothamount1
productReviewamount1
1.0.1

5 months ago

1.0.0

5 months ago