#ebookor
auto grab content from web including related resource such as css,image,links and so on to make ebook for epub.
Install
npm install ebookor
Quick start
var ebookor=require('ebookor');
var monitor=ebookor.start({
uri:'uri'
});
monitor.on('message',function(msg){
console.log(msg.type);
switch (msg.type) {
case 'update':
console.log(msg.name+' is loading');
break;
case 'loaded':
console.log('all is loaded');
var htmls=ebookor.getHtmlList();
ebookor.epubConfig(config);
ebookor.makeEpub();
break;
case 'finished':
console.log(monitor.file+'can be downloaded');
break;
case 'error':
console.log(monitor.msg);
break;
default:
console.log(monitor.msg);
}
});
tips
if you have problem with it ,let me know,my email: cuc_ygh@163.com,thanks!