3.0.0 • Published 12 months ago

rseed v3.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

Random seed package

A lightweight package that provides any amount of sain/readable randomized data. You can use it to seed your database or for any other such purpose.

Installing

To install this module run

  npm install -D rseed

Usage/Examples

const { rseed } = require('rseed');
// or
import { rseed } from 'rseed';

const result = rseed.getNames(5).getSurnames(2).getResult();

console.log(result);
// Result object will be like 
// {
//   names: [ 'Bojan', 'Abdeus', 'Alvaro', 'Job', 'Adoniram' ],
//   surnames: [ 'Seter', 'Hodne' ]
// }

// Or you can use the `only` method to retrieve data of one specific type
const result = rseed.only().getNames(5);

console.log(result);
// Result will be like  
// [ 'Bojan', 'Abdeus', 'Alvaro', 'Job', 'Adoniram' ]

All methods

  • getNames(amount) (names in result object)
  • getSurnames(amount) (surnames in result object)
  • getMiddleNames(amount) (middleNames in result object)
  • getPetsNames(amount) (pets in result object)
  • getCountriesNames(amount) (countries in resultobject)
  • getCitiesNames(amount) (cities in result object)
  • getPhoneNumbers(amount) (phoneNumbers in result object)
  • getAges(amount, min, max) (ages in result object)
  • getMails(amount) (mails in result object)
  • getRandomWords(amount) (randomWords in result object)
  • getTestText(amountOfLetters) (text in result object)

Roadmap

  • More methods 💪
3.0.0

12 months ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago