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=; // optional// ebookor.useLanguage({// var message={// 'rendder file failed':'渲染文件失败',// 'is loading':'正在下载',// 'all resource is loaded':'所有资源文件已下载完',// 'epub maked success':'epub文件已生成',// 'is copying related files':'正在操作相关文件',// 'is reading config and edit opt and ncx':'读取配置编辑epub配置文件',// 'lack of base information about downloaded resources':'没找到下载的资源文件',// 'we need some time to pack files into epub,plaease wait for a momenet':'正在生成电子书,稍等片刻'// };// }); // optional// for example you are grabing cur url,and thr url page include other url page,we need tell progama wether grap the other url page,defualt is like this: url=http://javascript.ruanyifeng.com/advanced/fsm.html,nextUrl=http://javascript.ruanyifeng.com/advanced/ecmascript6.html,then return true,if nextUrl=http://javascript.ruanyifeng.com/test/a.html,return false// ebookor.setRule(function(url,nextUrl){// return true;// }); var monitor=ebookorstart uri:'uri'//set one available resource uri,http or https is ok; // monintor progressmonitor;
tips
if you have problem with it ,let me know,my email: cuc_ygh@163.com,thanks!