all-random-words

1.0.1 • Public • Published

Random Word Generator

This Node.js package allows you to generate random words based on different categories such as all words, animals, anime, fruits, and Pokémon.

Installation

You can install the package using npm:

npm install all-random-words

USage

const random_word = require('all-random-words');

// Generate 5 random words from all categories console.log("Any Random 5 Words:") for(let i = 0; i < 5; i++) { console.log(random_word(0)); }

// Generate 5 random animal names console.log("Any Random Animal 5 Words:") for(let i = 0; i < 5; i++) { console.log(random_word(1)); }

// Generate 5 random anime titles console.log("Any Random Anime 5 Words:") for(let i = 0; i < 5; i++) { console.log(random_word(2)); }

// Generate 5 random fruit names console.log("Any Random Fruit 5 Words:") for(let i = 0; i < 5; i++) { console.log(random_word(3)); }

// Generate 5 random Pokémon names console.log("Any Random Pokemon 5 Words:") for(let i = 0; i < 5; i++) { console.log(random_word(4)); }

License

This project is licensed under the MIT License.

Feel free to adjust the content and structure of the readme.md file as needed for your project.

Package Sidebar

Install

npm i all-random-words

Weekly Downloads

4

Version

1.0.1

License

ISC

Unpacked Size

12.5 kB

Total Files

10

Last publish

Collaborators

  • emteyaz