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

cmd-notepad

v1.0.10

Published

脚本命令记事本,管理多个可执行的脚本

Downloads

32

Readme

cmd-notepad

因为本人经常在自己电脑频繁切换公司和自己的 npm源、git config中的 user.name、user.email、http.proxy 等,所以写了这个脚本,方便切换。当然你可以自由的保存你常用的一些命令。

下载

npm i cmd-notepad -g

使用

查看命令

cmds --help

生成配置命令文件,根据配置文件初始化

cmds gs

该命令会基于全局脚本配置在当前目录生成一个配置文件,配置文件名为cmdList.json,其中最外层是脚本名称,里面main是脚本执行命令,不同的脚本以逗号分割,onDestroy 是切换脚本或者删除上一次执行的脚本以后会执行的命令

默认是这样:

{
  "example": {
    "main": "echo man",
    "onDestroy": "echo manba out"
  },
  "company-gitConfig": {
    "main": "nrm use XXXX, git config --global user.name XXXX, git config --global user.email XXXX",
    "onDestroy": ""
  },
  "myself-gitConfig": {
    "main": "nrm use npm, git config --global user.name XXXX, git config --global user.email XXXX, git config --global http.proxy 127.0.0.1:XXXX",
    "onDestroy": "git config --global --unset http.proxy"
  }
}

修改cmdList.json,将 XXXX 替换为你自己的信息,可以删除也可以改名最外层 key,然后执行初始化命令,以便将配置应用到全局

注意不是说改了当前目录的配置文件就生效,你可以理解为命令备份,只需要把生成的配置文件拷贝在另一个电脑某一个目录下,执行下面的命令就可以同步了

继续在当前目录下执行以下命令,会在当前目录查找cmdList.json文件,然后根据配置文件初始化全局脚本

cmds init

可以查看脚本

cmds ls

添加脚本

看各自爱好,上面一种方式和当前都可以进行添加脚本

cmds add

执行脚本

cmds run

选择一个脚本执行

删除脚本

cmds remove <脚本名称>