Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zcrossoverz committed Jun 27, 2023
1 parent 502883c commit f08cf85
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ npm i manga-lib
Here's an example of how to use manga-lib in your code:

```javascript
const { Manga, MangaType } = require("manga-lib");
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/",
baseUrl: 'https://domain.com/',
});

// Get list latest manga
Expand All @@ -40,16 +40,16 @@ const latest_page_2 = await manga.getListLatestUpdate(2);

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

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

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

## Supported Websites
Expand All @@ -60,6 +60,10 @@ The manga-lib currently supports the following manga websites (updating):

- toonily

- blogtruyen

- asurascans (in progress)

## 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.

0 comments on commit f08cf85

Please sign in to comment.