1.2.1 • Published 3 years ago

npmanga v1.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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.

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago