Skip to content

catvec/data-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Generator

A quick script to generate large amounts of test data. Takes advantage of two already existing random data generation libraries, Chance.js and Faker.js, to actually create the data.

Usage

Usage: node genSchemas.js <Category>

Run the genSchemas.js file with one positional command line argument for the data category. This value tells the program the theme of the test data to generate.

Avliable categories:

  • location
  • user
  • web

Defining Your Own Categories

In the genSchemas.js file there is a object named items. This object holds numerous keys, each which then hold an array of keys themselves.

Each of the object keys is a category name. The user specifies which category to use via the command line interface. The keys in the arrays are Chance.js or Faker.js keys. Although you will find some do not work due to a downstream library issue.

About

A quick script to generate large amounts of test data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors