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 🙏

© 2026 – Pkg Stats / Ryan Hefner

stupid-project-doc-cli

v2.0.0-alpha.1

Published

这是一个生成文档的工具,将依据指定目录下的md文件生成对应的html,支持文档开发阶段的预览和发布的构建。

Readme

Spd Cli

这是一个生成文档的工具,将依据指定目录下的md文件生成对应的html,支持文档开发阶段的预览和发布的构建。

Features

Installation

Install stupid-project-doc-cli via yarn or npm.

$ yarn add stupid-project-doc-cli

or

$ npm i stupid-project-doc-cli

Usage

$ spd <command> [options]

Commands:
	dev [sourceDir]    start development server
	build [sourceDir]  build `sourceDir` as static site 

Command

目前只进行增加了dev命令和build命令,对于支持的命令行参数如下:

对于build命令支持了-o参数,支持指定文档存放目录。

  • -o, --output
    • type: string
    • default: docs

config

新建.spd.js文件或者.spd.json文件进行配置。配置项参考vitepress config,在配置项中如果进行主题配置了themeConfig优先走配置文件,如果配置文件中不存在则依据项目中指定的文件夹自动生成。

比如:

{
  "dest": "docs",
  "themeConfig": {
    "nav": [
      { "text": "Home", "link": "/" },
      { "text": "Guide", "link": "/guide/" },
      { "text": "External", "link": "https://google.com" },
    ]
  }
}

Generation rules

  • 解析指定sourceDir进行md文件的解析,将对应的md文件和图片生成到指定的路径。
  • 进行读取.spd.js文件或者.spd.json文件生成配置文件。
    • 针对于用户自定义配置的配置直接保留。
    • 生成配置文件中themeConfig中的配置,根据文件夹结构和md文件中的h1标题生成目录结构。

Warn Notice

  • 目前spd只做了对md文件和相对路径的图的解析,暂时还不支持其他hbs文件等。