npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ebookor

v0.0.4

Published

grab content from web to make ebook such as *.epub,it needs a uri and auto grab all related resource then let user choose which will go into ebook. it can set basic information for ebook such as cover,title,author and so on.

Downloads

3

Readme

#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');

// 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=ebookor.start({
  uri:'uri'//set one available resource uri,http or https is ok
});

// monintor progress
monitor.on('message',function(msg){
  console.log(msg.type);//update,error,loaded,finished
  switch (msg.type) {
    case 'update':
      console.log(msg.name+' is loading');
      break;
    case 'loaded':
      console.log('all is loaded');
      var htmls=ebookor.getHtmlList();//we can preview all htmls loaded
      ebookor.epubConfig(config);//we can set basic information for making epub.
      ebookor.makeEpub();//start to make epub using htmls loaded
      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: [email protected],thanks!