crickrandom
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:
- Name: The Quizzer
- Email: thequizzer8@gmail.com
- Discord: TheQuizzer#8474
You can also create an issue on the GitHub repository for any bug reports or feature requests.