kote-api

    1.0.2 • Public • Published

    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

    Install

    npm i kote-api

    DownloadsWeekly Downloads

    7

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.83 kB

    Total Files

    4

    Last publish

    Collaborators

    • rishi