Code Monkey home page Code Monkey logo

get-random-quote's Introduction

get-random-quote Build Status

Gets a random quote for you using the Forismatic API. Great for giving your team some inspiration after a build ๐Ÿ˜€.

Build Message

Usage

import getRandomQuote from 'get-random-quote';

getRandomQuote
    .then((quote) => {
        console.log(quote);
        //{ 
        //    author: 'Edwin Chapin', 
        //    text: 'Every action of our lives touches on some chord that will vibrate in eternity.' 
        //}
    });

Installation

npm install get-random-quote

Run Test

npm run test or ava

get-random-quote's People

Contributors

kdelmonte avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

get-random-quote's Issues

RequestError: Error: self signed certificate in certificate chain


Unhandled rejection RequestError: Error: self signed certificate in certificate chain
    at new RequestError (/Users/ccc/node_modules/request-promise-core/lib/errors.js:14:15)
    at Request.plumbing.callback (/Users/ccc/node_modules/request-promise-core/lib/plumbing.js:87:29)
    at Request.RP$callback [as _callback] (/Users/ccc/node_modules/request-promise-core/lib/plumbing.js:46:31)
    at self.callback (/Users/ccc/node_modules/request/request.js:186:22)
    at emitOne (events.js:115:13)
    at Request.emit (events.js:210:7)
    at Request.onRequestError (/Users/ccc/node_modules/request/request.js:878:8)
    at emitOne (events.js:115:13)
    at ClientRequest.emit (events.js:210:7)
    at TLSSocket.socketErrorListener (_http_client.js:401:9)
    at emitOne (events.js:115:13)
    at TLSSocket.emit (events.js:210:7)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9) 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.