UNPKG

npmanga

Version:

A package that allows you to fetch data from any manga.

53 lines (44 loc) 876 B
# Npmanga A package that allows you to fetch data from any manga. ## Use ### Fetch data from a single tome : ``` const npmanga = require("npmanga"); npmanga.fetchTome(mangaName, tomeNumber); /* * response = { * url, * title, * releaseDate, * pageNumber, * price, * summary, * chapters, * released * } */ ``` if a tome isn't yet released, the response will only contain the url and the title of the tome. ### Fetch data from a manga : ``` const npmanga = require("npmanga"); npmanga.fetchManga(mangaName, retrieveTomes=false); /* * response = { * url, * title, * imageUrl, * releaseYear, * type, * genres, * themes, * author, * editor, * tomeNumber, * price, * age, * tomes * }; */ ``` You can retrieves the informations of every tome of a manga by passing retrieveTomes=true.