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 🙏

© 2025 – Pkg Stats / Ryan Hefner

jsdoc-zero

v0.0.18

Published

Generate documentation by jsdoc.

Readme

JSDOC-ZERO

travis-ci NPM Version NPM Downloads

===========================================================================

简介 (Introductions)

JSDOC-ZERO 与其他文档生成工具的不同之处在于它是以文件目录为单位,一层一层递归的,适用于工程较大、文件内容较多、文件夹层次较深的项目。

==> npm --> 查看示例

安装 (Installation)

安装 JSDOC-ZERO 为全局工具:

$ npm install jsdoc-zero -g

使用 (Use)

建立配置文件 (Create configuration file)

首先在项目根目录下建立 dox.config.json 文件,默认内容为:

{
  "name"     : "default",
  "version"  : "0.0.1",
  "source"   : {
    "include": [
      "lib"
    ],
    "exclude": [
      "node_modules"
    ],
    "suffix" : [
      ".js"
    ],
    "output" : "doc/dox"
  }
}

其中含义:

  • name : 项目名称
  • version : 版本号码
  • source
    • include : 待检查目录的集合
    • exclude : 需要过滤的目录集合
    • suffix : 待检查文件的后缀名
    • output : 输出目录

新建文件 dox.config.json 完成之后,根据自己的具体项目完善配置文件,然后在当前项目的根目录下的命令行中执行命令:

$ jdz build

此时 jdz 会自动寻找项目根目录下的 dox.config.json 文件进行相关操作。

注意 (Careful)

when JSDOC-ZERO generating documentation, it will empty all files under the output directory.

效果图 (Sample picture)

First JSDOC-ZERO in the output directory to establish an index file: index.html, it contains Waiting for the check folder and its subdirectories directory of all md files.

Generated JSDOC specification file, it include the basic file information at the head and set the anchor point of the page method, is used for quick jump.

New add search function and it will search for file‘s comments content by the input method name:

The md file rendering display:

Update

2016/7/15

  1. 修改部分代码写法,增强可阅读性
  2. 修改所有页面的 css 样式
  3. 增加相对静态路径,将 js 等静态资源从 cdn 转为本地静态资源
  4. 增加文件相关信息
  5. 增加搜索功能,可以根据相关注释方法名搜索到相应文件
  6. 增加返回根目录功能以及生成文件名用 base64 处理

Coverage summary

| Statements: | 79.1% ( 159/201 ) | |---| | Branches: | 51.22% ( 42/82 ) | | Functions: | 88.24% ( 45/51 ) | | Lines: | 80.3% ( 159/198 ) |