Manga

Manga

new Manga(mangadata)

Manga object. Only construct this via MangaDex class!

Parameters:
Name Type Description
mangadata Object

Raw API author data

Source:

Members

altTitles :Array.<LocalizedString>

Source:

availableTranslatedLanguages :Array.<LanguageCode>

Source:

baseURL :"https://api.mangadex.org"

Base api URL ("https://api.mangadex.org")

Source:

chapterNumbersResetOnNewVolume :Boolean

Source:

contentRating :contentRating

Source:

createdAt :String

Source:

description :LocalizedString

Manga description

Source:

id :String

Manga api ID

Source:

isLocked :Boolean

Source:

lastChapter :String

Source:

lastVolume :String

Source:

latestUploadedChapter :String

Chapter UUID

Source:
Source:

originalLanguage :String

Original language of manga: ja, en etc...

Source:

publicationDemographic :publicationDemographic

Source:

relationships :Array.<Relationship>

Source:

state :mangaState

Source:

status :mangaStatus

Source:

tags :Array.<MangaTag>

Tags

Source:

title :LocalizedString

Manga title for languages

Source:

type :"manga"

Source:

updatedAt :String

Source:

year :Number

Source:

Methods

(async) aggregate(Query) → {Promise.<Object.<String, AggregatedVolume>>}

Parameters:
Name Type Description
Query MangaAggregateQuery
Source:
Example
let res = await MangaObject.aggregate()
console.log(res) # -> {"1": AggregatedVolume, "2": AggregatedVolume }

getArtist() → {String}

Source:

getAuthor() → {String}

Source:

(async) getChapters(query) → {Promise.<Array.<Chapter>>}

Parameters:
Name Type Description
query MangaFeedQuery
Deprecated:
  • Use getMangaFeed instead. I might remove this soon.

Source:

getCoverArt() → {String}

Source:

getHumanURL() → {String}

Source:

(async) getMangaFeed(Query) → {Promise.<Array.<Chapter>>}

Parameters:
Name Type Description
Query MangaFeedQuery
Source:

(async) getTotalPages() → {Promise.<Number>}

Deprecated:
  • Not needed, gets multiple sources from different langs

Source: