2.0.0 • Published 3 years ago

animequotes v2.0.0

Weekly downloads
230
License
MIT
Repository
github
Last release
3 years ago

animequotes

npm npm npm type definitions NPM JavaScript Style Guide

Anime Quotes for Node.

Install

npm install animequotes

Usage

const animeQuotes = require('animequotes')

// Get Random Quote
console.log(animeQuotes.randomQuote())

// Get Quote By ID
console.log(animeQuotes.getQuote(1))

// Get Quotes By Anime
console.log(animeQuotes.getQuotesByAnime('naruto'))

// Get Quotes By Character
console.log(animeQuotes.getQuotesByCharacter('itachi uchiha'))

// Get Random Quote From The Anime
console.log(animeQuotes.getRandomQuoteByAnime('one piece'))

// Get Random Quote From The Character
console.log(animeQuotes.getRandomQuoteByCharacter('shanks'))

// The Above 4 Functions Can Also Accept An Optional Second Argument (Boolean)
// Pass true To Do Substring Matching Instead Of Exact Matching The Input String.
console.log(animeQuotes.getRandomQuoteByCharacter('itachi', true))

Example Object

{
  "quote": "You are weak. Why are you so weak? Because you lack... hatred.",
  "anime": "Naruto",
  "id": 635,
  "name": "Itachi Uchiha",
  "success": true
}

The More The Merrier

  • Total Quotes: 8510
  • No. of unique Characters: 2334
  • No. of unique anime: 787

Changelog

See CHANGELOG.md.

License

2.0.0

3 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

5 years ago

1.0.0

6 years ago