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

git-code-count

v2.0.5

Published

git代码数量统计

Readme

简介

这是一款用于统计你在git上提交了多少代码量的统计工具

安装

npm i git-code-count -g

使用

配置

此工具需要在当前执行目录下面有一个 .git-code-count-config.js 配置文件。具体例子请见配置文件完整示例

运行

cd D:\workSpace

git-code-count

配置文件完整示例

module.exports = {
  availableProject:[
    {
      name: '集客',
      path: './tungee/inbound-frontend/inbound'
    },
    {
      name: '集客客服sdk',
      path: './tungee/inbound-frontend/sdk-smart-cs'
    },
    {
      name: '集客落地页',
      path: './tungee/inbound-frontend/turkey-html'
    }
  ],
  author: 'tanxin'
}

配置项说明

  • availableProject: 必填。值为 namepath 组成的对象的数组。因考虑到项目不太可能经常变动,所以省略了每次选择项目的步骤,改为配置文件。
  • author: 选填。git上提交的日志,会有作者来表示是谁提交的。如我提交的代码,author是[email protected],那我这个参数输入tanxin就可以了,当然也可以输入全部来百分百匹配。如果不配置此选项,每次使用工具的时候会让用户手动输入。

注意

  • nodejs 版本请尽量用 8.x或更高 版本,因为我使用了 async , await , trim 等新语法,而又懒得转译。。。