Module: word

Source:

Methods

(async, inner) getWordOfTheDay(date) → {Promise.<{english: String, hindi: String, urdu: String, meaning: String, usage: String}>}

Fetch the word of the day for a given date.

Parameters:
Name Type Description
date string

Date in YYYY-MM-DD format

Source:
Throws:
  • DateFormatError
  • WordNotFoundError
Returns:
Type
Promise.<{english: String, hindi: String, urdu: String, meaning: String, usage: String}>