1.1.2 • Published 9 months ago

manga-lib v1.1.2

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

manga-lib

License

manga-lib is a library that allows you to easily scrape manga content from various websites.

Features

  • Scrapes manga chapters, titles, images, and other metadata.
  • Supports multiple popular manga websites (updating).
  • Provides a simple and intuitive API for easy integration.

Installation

Install the library using npm:

npm i manga-lib

Usage

Here's an example of how to use manga-lib in your code:

const { Manga, MangaType } = require('manga-lib');

// Create a new instance of the manga site, MangaType.NETTRUYEN is currently support for https://www.nettruyenplus.com/
const manga = new Manga().build(MangaType.TOONILY);
// Create a new instance with custom url
const manga = new Manga().build(MangaType.TOONILY, {
  baseUrl: 'https://domain.com/',
});

// Get list latest manga
const latest = await manga.getListLatestUpdate();
const latest_page_2 = await manga.getListLatestUpdate(2);

// Retrieve the manga details
const detail_manga = await manga.getDetailManga(
  'https://toonily.com/webtoon/nano-machine/'
);

// Get data chapter
const data_chapter = await manga.getDataChapter(
  'https://toonily.com/webtoon/nano-machine/chapter-159/'
);

// Search manga
const search_manga = await manga.search('one piece');

Supported Websites

The manga-lib currently supports the following manga websites (updating):

  • nettruyen

  • toonily

  • blogtruyen

  • asurascans

  • mangadex

Contributing

Contributions are welcome! If you find any issues or would like to suggest enhancements, please submit a pull request or open an issue in the GitHub repository.

1.1.2

9 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.53

11 months ago

1.0.52

11 months ago

1.0.51

11 months ago

1.0.49

11 months ago

1.0.48

11 months ago

1.0.47

11 months ago

1.0.46

11 months ago

1.0.45

11 months ago

1.0.44

12 months ago

1.0.43

12 months ago

1.0.42

12 months ago

1.0.41

12 months ago

1.0.40

12 months ago

1.0.39

12 months ago

1.0.38

12 months ago

1.0.37

12 months ago

1.0.36

12 months ago

1.0.35

12 months ago

1.0.34

12 months ago

1.0.33

12 months ago

1.0.32

12 months ago

1.0.31

12 months ago

1.0.30

12 months ago

1.0.29

12 months ago

1.0.28

12 months ago

1.0.27

12 months ago

1.0.26

12 months ago

1.0.25

12 months ago

1.0.24

12 months ago

1.0.23

12 months ago

1.0.22

12 months ago

1.0.21

12 months ago

1.0.20

12 months ago

1.0.19

12 months ago

1.0.18

12 months ago

1.0.17

12 months ago

1.0.16

12 months ago

1.0.15

12 months ago

1.0.14

12 months ago

1.0.13

12 months ago

1.0.12

12 months ago

1.0.11

12 months ago

1.0.10

12 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago