1.0.2 • Published 6 years ago

kote-api v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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