quotes-go

1.0.5 • Public • Published

Quotes Go

Random Quotes generator with author names and images.

Installation

Use the package manager npm to install quotes-go

npm install quotes-go

Demo

https://quotes-go-demo.herokuapp.com/

Usage

Import:
import quotesGo from "quotes-go";

Get Random Quote:
const randomQuote = quotesGo.getRandomQuote();
// Returns The following Object

{ text: "Never give up. Today is hard, tomorrow will be worse, but the day after tomorrow will be sunshine.", id: "379", author: { name: "Jack Ma", shortDesc: "Chinese business magnate", avatar: "https://etimg.etb2bimg.com/photo/68888260.cms" } }


Complete Authors List:
const authorsList = quotesGo.getAuthorsList();

Quotes from specified author:
const authorQuotes = quotesGo.getAuthorQuotes("steve_jobs");

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i quotes-go

    Weekly Downloads

    20

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    97.2 kB

    Total Files

    4

    Last publish

    Collaborators

    • gopal221296