Skip to content

📚 Easily fetch Quote of the Day from sites like BrainyQuote and Eduro!

License

Notifications You must be signed in to change notification settings

CodeDotJS/kote-api

Repository files navigation

kote-api Build Status

Easily fetch quote of the day from BrainyQuotes and Eduro.

Install

$ npm install --save kote-api

Usage

'use strict';

const kote = require('kote-api');

kote.eduro().then(user => {
  console.log(user);
  // => { quote: 'Don’t cry because it’s over, smile because it happened.' }
});

kote.brainyQuote().then(quote => {
  console.log(quote);
  // { quote: 'Hope is but the dream of those wake.' }
});

// or

kote.brainyQuote('nature').then(quote => {
  console.log(quote);
  // { quote: A good garden may have some weeds. }
});

API

  • kote.brainyQuote()

  • kote.brainyQuote(opts)

opts

  • love
  • nature
  • art
  • funny

Typeof

opts : string

  • kote.eduro()

Related

  • Kote : Daily injection of wisdom, fun and love through command line

License

MIT © Rishi Giri

About

📚 Easily fetch Quote of the Day from sites like BrainyQuote and Eduro!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published