words-of-the-day

1.0.0 • Public • Published

words-of-the-day Build Status

Get word of the day and meanings from the different sources.

Install

$ $ npm install words-of-the-day

Usage

  • Default
const wordOfTheDay = require('words-of-the-day');
 
 
wordOfTheDay.wordThink().then(data => {
  console.log(data);
  /*
  { date: '2017/06/30',
    word: 'Secular',
    meaning: 'Secular  adj. 1. Worldly rather than spiritual.'
  }
   */
});
 
wordOfTheDay.merrimWebster().then(data => {
  console.log(data);
  // {data: information}
});
 
wordOfTheDay.dictionarWord().then(data => {
  console.log(data);
  // {data: information}
});
 
  • Specific
wordOfTheDay.merriamWebster('2016/10/10').then(data => {
    console.log(data);
});
 
wordOfTheDay.dictionaryWord('2016/01/03').then(data => {
    console.log(data);
});

API

  • wordOfTheDay.wordThink()

  • wordOfTheDay.merriamWebster()

  • wordOfTheDay.merriamWebster('yyyy/mm/dd')

format : yyyy/mm/dd

type : string

  • wordOfTheDay.dictionaryWord()

  • wordOfTheDay.dictionaryWord('yyyy/mm/dd')

format : yyyy/mm/dd

type : string

Related

  • worday : Your daily does of new words from the command line!

License

MIT © Rishi Giri

Package Sidebar

Install

npm i words-of-the-day

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rishi