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

hexo-books

v1.0.3

Published

Hexo 阅读页面插件

Downloads

42

Readme

hexo-books

介绍

为 Hexo 添加阅读页面,数据来自豆瓣读书.

特色功能

  • 支持数据缓存及书目封面图本地化,防止因上游服务挂掉导致连锁效应,爬取好后可纯离线场景下部署
  • 极端条件下可通过编辑文件来自定义阅读列表,可自定义添加豆瓣读书上没有的数据
  • 总的来说,只要你爬取过这本书,那么就算将来豆瓣读书上把这本书删掉了,你也可以继续使用这本书

预览

安装

在 Hexo 文件夹下执行:

$ npm install hexo-books --save

配置

将下面的配置写入 站点 的配置文件 _config.yml 中:

books:
  enable: true              # 是否启用
  path: books/index.html    # 生成阅读页面的路径
  show: 1                   # 想读,在读,读过
  title: '阅读列表'          # 标题
  quote: '生命不息,阅读不止' # 格言
  color_meta: "#555"        # 书目项元数据的颜色
  color_summary: "#555"     # 书目项简介的颜色
  douban_uid: mmdjiji       # 豆瓣的uid
  download_image: true      # 下载图片并使用本地图片,否则使用豆瓣提供的网络图源
  lazyload: true            # 是否开启懒加载
  margin: 20px              # 封面图的偏移量微调

使用

更新阅读数据:

$ hexo books -u

删除阅读数据:

$ hexo books -d

Lisense

Apache Licence 2.0