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

echofe

v1.0.0

Published

## 编写备忘录

Readme

echofe

编写备忘录

  1. CLI 项目的区别在于 package.json 的配置上有一个 bin 的配置
  2. 本地调试需要使用 npm link
  3. 调用时因为在系统层面调用需要在代码里标注执行环境,如 cli 的第一行 #!/usr/bin/env node

请遵守规则

CC 掌握 Node CLI 工具开发,为团队研发提效! 4.1、遵循 POSIX 参数 POSIX 语法已被广泛接受为命令行工具的标准,我们开发命令行工具时,应该遵守它。 常见规则举例如下:

可以指令帮助或示例中将选项参数或选项标记为方括号( [] )表示它们是可选的;或带有尖括号( <> )表示它们是必需的。

允许使用短格式的单个字母参数作为长格式参数的别名(请参阅 GNU 编码标准)

使用缩写形式单数指定的选项 - 可以包含一个字母数字字符。

指定多个没有值的选项可以进行分组,例如 myCli -abc 等效于 myCli -a -b -c

命令行高级用户希望您的命令行应用程序具有与其他 Unix 应用程序类似的约定 4.2、遵循 Semver 版本 版本格式  X.Y.Z-[state]

X 代表 主版本号:功能新增、移除,API不向下兼容 Y 代表 次版本号:功能新增,API向下兼容 Z 代表 修订版本号:问题修复,API向下兼容 [state] 状态解释如下

描述方式说明含义alphaalpha 版内测版本:bug 较多betabeta 版公测版本:存在bug,有缺陷gammaGamma 版相当成熟的测试版:与发行版相差无几(一般略过此版本)rcRelease Candidate发行倒计时版本:实现了全部功能,修复了大部分 bug,接近发布倒计时,有时会进一步细分为 rc.1、rc.2 4.3、提供丰富且友好的交互

提供丰富的交互,如 select 选择、filter 筛选、帮助提示等,让人操作更便捷

Reference

写一个自己用的node-cli 掌握 Node CLI 工具开发,为团队研发提效!