ranwords
v1.1.0
Published
Generate random words with their meaning and pronunciation
Downloads
6
Readme
Ranwords
Easily generate random words with their meaning and pronunciation.
💁🏾♂️ Get started
💻 Install the package
npm install ranwords
📚 Usage
- TypeScript
import { randomWordAll, randomWordMeaning, randomWordPronunciation } from "ranwords";
// returns json formatted data
randomWordAll().then(console.log);
// only returns a word + meaning
randomWordMeaning().then(console.log);
// only returns a word + pronunciation
randomWordPronunciation().then(console.log);
- JavaScript
const { randomWordAll, randomWordMeaning, randomWordPronunciation } = require("ranwords");
// returns json formatted data
randomWordAll().then(console.log);
// only returns a word + meaning
randomWordMeaning().then(console.log);
// only returns a word + pronunciation
randomWordPronunciation().then(console.log);
📚 Examples
- randomWordAll();
{
word: 'Utile',
definition: 'Profitable; useful',
pronunciation: 'Utile'
}
- randomWordMeaning();
Yager | Nineteenth-century rifle
- randomWordPronunciation();
Éolienne | Eoliene