1.0.0 • Published 12 months ago

@kunwarji/anime-quotes v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Anime Quotes

What is this?

NPM package that can be used to get quotes from Anime. This package is built on the top of FrostIn's anime quotes data, where I added more quotes by scraping websites (logic for which is there in anime-quotes-data repo). As I find few more sites/time to scrape data for it, I'll update the repo their and use its data in this package. If you want to build your own api, you can use the csv file that is there in quotes data repo or simply host the one that I have built and use it. Currently this repo has near to 20K quotes.

Install

npm install @kunwarji/anime-quotes

Usage

import animeQuotes from "@kunwarji/anime-quotes";

// Get random quote
console.log(animeQuotes.randomQuote());

// Get 10 random quote
console.log(animeQuotes.randomQuote(10));

// Get quote by anime
console.log(animeQuotes.randomQuoteByAnime("naruto"));

// Get 10 quotes by anime
console.log(animeQuotes.randomQuoteByAnime("naruto", 10));

// Get quote by character
console.log(animeQuotes.randomQuoteByCharacter("itachi uchiha"));

// Get 20 quotes by character
console.log(animeQuotes.randomQuoteByCharacter("itachi uchiha", 20));

Example Object

{
	"anime": "Yahari Ore No Seishun Love Come Wa Machigatteiru",
	"id": 4462,
	"name": "Hachiman Hikigaya",
	"quote": "Hard work betrays none, but dreams betray many."
}
1.0.0

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago