rickriordanquotes

1.1.0 • Public • Published

Get a random quote from Rick Riordan Books as an NPM Module

Installation

You can find the npm module here on

https://www.npmjs.com/package/rickriordanquotes

Just install the module using npm i rickriordanquotes

Usage

To include in CommonJS Module

const quotes = require('rickriordanquotes')

To include in ES6 Module

import {all, random} from 'rickriordanquotes'

Get All Quotes

//Prints a Array of Quotes and Title of the Book
const allQuotes = quotes.all;

Get Random Quote

//Prints a random Quote from the list
const randomQuote = quotes.random();

Scraping

I have also included the scrape.js file in the scrapper folder. I used Cheerio for scraping the GoodReads Page for the data.

Package Sidebar

Install

npm i rickriordanquotes

Weekly Downloads

2

Version

1.1.0

License

ISC

Unpacked Size

237 kB

Total Files

5

Last publish

Collaborators

  • pbiswas