anime-quotes-js npm version

A simple Node.js module to fetch anime quotes from a JSON file.

Installation

npm install anime-quotes-js

Or using locally

git clone https://github.com/subashbaniyaa/anime-quotes-js.git

Import the module

import { getRandomQuote, getAllQuotes } from 'anime-quotes-js';

Usage

// Get a random quote
const quote = await getRandomQuote();
console.log(quote);

// Get all quotes
const quotes = await getAllQuotes();
console.log(quotes);

Demo

Click "Random quote" to get one.