1.1.0 β€’ Published 3 years ago

ranwords v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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
1.1.0

3 years ago