crickrandom

6.1.0 • Public • Published

crickrandom

npm version

crickrandom is an npm package that generates random cricket players with their associated attributes such as batsmen, bowlers, and all-rounders.

Installation

To install crickrandom, use npm:

npm install crickrandom

Usage

const generatePlayer = require('crickrandom');

const generatePlayer = require('crickrandom');

// Generate a single random player
const player = generatePlayer();

console.log(player);

// Generate multiple random players
const players = generatePlayer(5);

console.log(players);

// Generate random batsmen
const batsmen = generatePlayer.batsmen(3);

console.log(batsmen);

// Generate random bowlers
const bowlers = generatePlayer.bowler(2);

console.log(bowlers);

// Generate random all-rounders
const allRounders = generatePlayer.allRounder(4);

console.log(allRounders);

Contact Me

If you have any questions, feedback, or suggestions, feel free to reach out to me:

You can also create an issue on the GitHub repository for any bug reports or feature requests.

Package Sidebar

Install

npm i crickrandom

Weekly Downloads

12

Version

6.1.0

License

ISC

Unpacked Size

53.7 kB

Total Files

16

Last publish

Collaborators

  • thequizzer28