Get a random quote from Rick Riordan Books as an NPM Module
You can find the npm module here on
https://www.npmjs.com/package/rickriordanquotes
Just install the module using npm i rickriordanquotes
To include in CommonJS Module
const quotes = require('rickriordanquotes')
To include in ES6 Module
import {all, random} from 'rickriordanquotes'
//Prints a Array of Quotes and Title of the Book
const allQuotes = quotes.all;
//Prints a random Quote from the list
const randomQuote = quotes.random();
I have also included the scrape.js file in the scrapper folder. I used Cheerio for scraping the GoodReads Page for the data.