1.0.0 • Published 7 years ago

words-of-the-day v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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