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

reader-time

v1.1.1

Published

逐行阅读文章,记录你的时间

Downloads

1

Readme

阅读器:阅读时间

逐行阅读文章,记录你的时间,然后备份它,留下一点点痕迹。

安装

npm install reader-time -D

一份文章模板

  • data/index.js

    article 指定阅读的文章

    export default {
      wordTime: 2, // 阅读句子的秒数
      readIndex: 80, // 从这里开始阅读
      readResult: "阅读时间11.7分钟", // 阅读结果
      // 关键词
      keywordHighlight: [
        ["第一人物", "red"], // 第一人物
        ["第二人物", "green"], // 第二人物
      ],
      article: `` // 文章粘贴到此处
    }

开始阅读

npm run read

高亮关键词

使用 colors-console (csdn)

颜色参考

// 关键词
keywordHighlight: [
  ["第一人物", "red"], // 第一人物
  ["第二人物", "green"], // 第二人物
]

// 可使用的颜色
{
  'bright'    : '\x1B[1m', // 亮色
  'grey'      : '\x1B[2m', // 灰色
  'italic'    : '\x1B[3m', // 斜体
  'underline' : '\x1B[4m', // 下划线
  'reverse'   : '\x1B[7m', // 反向
  'hidden'    : '\x1B[8m', // 隐藏
  'black'     : '\x1B[30m', // 黑色
  'red'       : '\x1B[31m', // 红色
  'green'     : '\x1B[32m', // 绿色
  'yellow'    : '\x1B[33m', // 黄色
  'blue'      : '\x1B[34m', // 蓝色
  'magenta'   : '\x1B[35m', // 品红
  'cyan'      : '\x1B[36m', // 青色
  'white'     : '\x1B[37m', // 白色
  'blackBG'   : '\x1B[40m', // 背景色为黑色
  'redBG'     : '\x1B[41m', // 背景色为红色
  'greenBG'   : '\x1B[42m', // 背景色为绿色
  'yellowBG'  : '\x1B[43m', // 背景色为黄色
  'blueBG'    : '\x1B[44m', // 背景色为蓝色
  'magentaBG' : '\x1B[45m', // 背景色为品红
  'cyanBG'    : '\x1B[46m', // 背景色为青色
  'whiteBG'   : '\x1B[47m' // 背景色为白色
}