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

autogeneratedapi

v1.2.0

Published

自动生成api文档

Readme

Auto Generated Api

一、作用

该插件是为了解决前端在根据API文档,编写请求接口(request)时,重复的复制Api文档的请求参数到代码中,这一不必要的重复性劳动。

image.png image.png

二、安装

1、安装Node.js

该插件是使用JavaScript编写,运行在Node.js环境上,在Node.js官方网站即可下载https://nodejs.org/en/.

2、安装ApiDoc

该插件是在Apidoc之上编写,需要安装ApiDoc,允许npm install apidoc -g安装,了解如何使用ApiDoc请查看官方网站http://apidocjs.com/

3、安装AutoGeneratedApi

Cmd命令行中输入npm install autogeneratedapi -g即可完成安装。

三、使用

1、查看帮助

C:\>generate -h

  Usage: generate [options]


  Options:

    -s, --source [value]       源代码文件夹(必须)
    -d, --destination [value]  API文档存放文件夹(必须)
    -h, --help                           output usage information

  Examples:

    generate --source C:\Users\Mr.pan\Desktop\SourceCode --destination C:\Users\Mr.pan\Desktop\ApiDocument

2、实例

cmd中运行命令generate --source 源代码文件夹 --destination API文档存放文件夹

C:\>generate --source C:\Users\Mr.pan\Desktop\dayangcode\PcbaProject\Java_workspace\customer\src\main\java\com\blt\customer\user\controller --destination C:\Users\Mr.pan\Desktop\新建文件夹
【INFO】: C: & cd C:\Users\Mr.pan\Desktop\新建文件夹 & apidoc -i C:\Users\Mr.pan\Desktop\dayangcode\PcbaProject\Java_workspace\customer\src\main\java\com\blt\customer\user\controller
warn: parser plugin 'return' not found in block: 1
warn: parser plugin 'return' not found in block: 2
warn: parser plugin 'return' not found in block: 3
warn: parser plugin 'param' not found in block: 4
warn: parser plugin 'param' not found in block: 4
warn: parser plugin 'return' not found in block: 4
warn: parser plugin 'param' not found in block: 5
warn: parser plugin 'param' not found in block: 5
warn: parser plugin 'return' not found in block: 5
warn: parser plugin 'param' not found in block: 6
warn: parser plugin 'param' not found in block: 6
warn: parser plugin 'return' not found in block: 6
warn: parser plugin 'param' not found in block: 7
warn: parser plugin 'param' not found in block: 7
warn: parser plugin 'return' not found in block: 7
warn: parser plugin 'param' not found in block: 0
warn: parser plugin 'param' not found in block: 0
warn: parser plugin 'return' not found in block: 0
info: Done.

【INFO】: 开始对API文档进行解析.
【INFO】: 1、重新组装API文档路径
【INFO】: 2、读取API文档
【INFO】: 3、转换API文档为JSON对象
【INFO】: 4、解析API文档
【INFO】: 5、将解析结果写入文件
【INFO】: 6、完成