This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@mskramst/fake-data
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

Fake sports generator

Currently this tool generates the following fake data:

  1. a specified number of fake players
  2. a specified number of fake teams
  3. a number of simulated scoring events for a fake baseball game
  4. a fake lineup of random players for one team.

Instructions

  1. import the DataGenerator class.

  2. create an instance of DataGenerator and call one of the four functions: getPlayers(num), getTeams(num), getScoringEvents(), getLineup(new Team())

  3. it will return an array of objects.

  4. calling the writeData method of the DataGenerator class with the filename and the array of objects will write to file a JSON file of the fake objects.

const generator = new DataGenerator();
console.log(generator.getPlayers(3))
generator.writeData("players.json", generator.getPlayers(3))

Readme

Keywords

none

Package Sidebar

Install

npm i @mskramst/fake-data

Weekly Downloads

0

Version

0.0.7

License

ISC

Unpacked Size

8.43 MB

Total Files

6

Last publish

Collaborators

  • mskramst