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

docsify-count

v1.1.0

Published

a countable plugin for markdown

Downloads

1,787

Readme

docsify-count

jsdelivr

This is a plugin to add word count for markdown files of docsify.

这是一款为docsify提供文字统计的插件

It only counts Chinese characters and English words excludes special characters like *-、…… in markdown file.

它提供了统计中文汉字和英文单词的功能,并且排除了一些markdown语法的特殊字符例如*-

And you can set count.language 'chinese'/'english'

To use

Add JS

<script src="//unpkg.com/docsify-count/dist/countable.min.js"></script>

or

<script src="https://cdn.jsdelivr.net/npm/docsify-count@latest/dist/countable.min.js"></script>

Add settings

window.$docsify = {
  count:{
    countable: true,
    position: 'top',
    margin: '10px',
    float: 'right',
    fontsize:'0.9em',
    color:'rgb(90,90,90)',
    language:'chinese',
    isExpected: true
  }
}

| 属性名Attribute | 类型Type | 解释Description | 可选值Value | | --- | --- | --- | --- | | countable | boolean | 设置字符统计展示与否 Set display this plugin or not | true(默认值Default) / false | | position | string | 设置展示位置 Set display position | 'top'(默认值Default) / 'bottom' | | margin | string | 设置与邻近DOM的距离 Set margin to the near DOM element | '10px' | | float | string | 设置元素对齐 Set alignment | 'right'(默认值Default) / 'top' | | fontsize | string | 设置字体大小 Set font size | '0.9em' | | color | string | 设置颜色 Set color | 'rgb(90,90,90)' | | language | string | 设置语言 Set language | 'english'(默认值Default) / 'chinese' | | isExpected | boolean | 是否显示预计阅读时长 Display the reading time or not | true(默认值Default) / false |