mayumi-core v1.1.8
mayumi-core
Download Manga.
Install
$ npm install --save mayumi-core
Requirements
- Node.js >= V7.0.0
- GraphicsMagick
Usage
Download
const { Downloader } = require('mayumi-core')
const dl = new Downloader({
formats: ['png', 'jpg', 'pdf']
})
const task = {
url: 'http://mangafox.me/manga/onepunch_man/v11/c056.1/1.html',
formats: ['png', 'jpg']
}
dl.add(task)
Utils
const { Utils } = require('mayumi-core')
Utils.search('mahou')
.then( mangas => {
// process mangas
})
.catch( err => {
// error
})
Utils.getChapters('http://mangafox.me/manga/onepunch_man/')
.then( mangas => {
// process mangas
})
.catch( err => {
// error
})
Downloader
Options
option | type | description |
---|---|---|
formats | Array | file formats. atm supported jpg, png and pdf |
savePath | String | the savepath. the standard savepath is the homedir + mayumi |
Events
event | return type | description |
---|---|---|
finished | Task Object | returns the Task Object when the task is finished |
all-finished | none | occurs when all tasks are finished |
error | Error Object | returns an error when an error occurs |
progress | Progress Object | returns an Progress object when progress was made in a task |
Progress Values
- get image urls
- get info
- download images
- convert images
- save manga
Utils
search(s, opts)
Takes a String and an opts Object and returns an array with all matching manga names and urls. if the manga is found on multiple sites it returns the same manga multiple times but with diffrent urls. The returned Objects have a name and a url property.
getChapters(url)
Takes a String and returns all available chapters + urls for the requested manga as an array. The returned Objects have a chapter and a url property.
Supported Sites
Can convert to the following formats
- jpg
- png
License
MIT © sys0
Support me
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago