A JavaScript library to access manga sites programmatically.
id | name | parser |
---|---|---|
guya |
guya.moe | GuyaParser |
catmanga |
CatManga | CatmangaParser |
Install the package directly from GitHub
$ npm i --save rockacola/manga-get
Use it as a stateless function with TypeScript.
import { GuyaParser } from 'manga-get'
const mangaId = 'Oshi-no-Ko'
;(async () => {
const manga = await GuyaParser.getManga(mangaId)
console.log('manga:', manga)
})()
import { GuyaParser } from '../lib'
const mangaId = 'Oshi-no-Ko'
const chapterId = '1'
;(async () => {
const chapter = await GuyaParser.getChapter(mangaId, chapterId)
console.log('chapter:', chapter)
})()
To see more TypeScript example usages, please check out the /examples
directory.