Random Quotes generator with author names and images.
Use the package manager npm to install quotes-go
npm install quotes-go
https://quotes-go-demo.herokuapp.com/
import quotesGo from "quotes-go";
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" } }
const authorsList = quotesGo.getAuthorsList();
const authorQuotes = quotesGo.getAuthorQuotes("steve_jobs");
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.