Get word of the day and meanings from the different sources.
$ $ npm install words-of-the-day
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);
});
-
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
worday
:
Your daily does of new words from the command line!
MIT © Rishi Giri