quotes-go
v1.0.5
Published
Random Quotes generator with author names and images.
Maintainers
Readme
Quotes Go
Random Quotes generator with author names and images.
Installation
Use the package manager npm to install quotes-go
npm install quotes-goDemo
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.
