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

dingtalk-daily-report-cli

v1.0.11

Published

Generate DingTalk daily reports from local git commits and copy rich text to the clipboard.

Downloads

100

Readme

钉钉日报 CLI

从本地多个 git 仓库读取当天提交,生成“项目 -> 模块 -> 具体功能”三级日报,并复制为适合粘贴到钉钉的富文本内容。

详细文档:

  • 安装和日常操作:INSTALL_AND_USAGE.md
  • 发布到 npm 私服:PRIVATE_REGISTRY.md

安装

团队内部发布到 npm 后:

npm install -g dingtalk-daily-report-cli

本机开发调试:

npm install -g /Users/churui/.cursor/daily-report-cli

首次配置

daily-report init-config

配置文件默认生成到 ~/.cursor/daily-report/config.json

关键字段:

  • projects:显式配置项目目录和展示名。
  • scanRoots:递归扫描这些目录下的 git 仓库。
  • author:按提交作者过滤。不填时使用仓库本地 git config user.namegit config user.email
  • moduleRules:根据文件路径映射二级模块名。
  • clipboard.fontSizePt:富文本字体大小,默认 11。

常用命令

daily-report preview --today
daily-report copy --today
daily-report copy --since 2026-04-27 --until 2026-04-27
daily-report copy --today --plain

preview 只输出上下文,不写剪贴板,不发送钉钉机器人。

copy 会优先写入 RTF 富文本剪贴板;如果当前系统不支持富文本写入,会自动降级为纯文本。

命令行展示结果会使用可直接复制的 text 代码块;剪贴板内容仍是适合粘贴到钉钉的正文/富文本。复制正文的一级标题直接使用项目名,三级会比二级进一步缩进:

```text
企业评级
    a. 统计数据模块开发
        i. 完成煤源地数据列表联调开发与详情展示优化
        ii. 修复统计详情展示问题
    b. 基础工作
        i. 完善构建配置
```

配置示例

{
  "projects": [
    {
      "name": "企业评级",
      "path": "~/projects/enterprise-rating",
      "moduleRules": [
        {
          "match": "src/views/statistics/",
          "module": "统计数据模块开发"
        }
      ]
    }
  ],
  "scanRoots": ["~/projects"],
  "author": {
    "name": "",
    "email": ""
  },
  "clipboard": {
    "preferRichText": true,
    "fontSizePt": 11
  }
}