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

zbs-front-cli

v1.0.1

Published

前端团队 CLI 工具集

Readme

front-cli

前端团队 CLI 工具集。结构与 front-ui-admin、front-ui-product 一致,脚本放在 bin/ 目录,在此目录执行 npm publish 发布。

已包含命令

| 命令 | 说明 | |------|------| | reset-env-branches | 从主分支重置 dev/test/pre 环境分支并强制推送 |

安装

npm install -D zbs-front-cli

在 package.json 中配置

{
  "scripts": {
    "reset:dev": "reset-env-branches dev",
    "reset:test": "reset-env-branches test",
    "reset:pre": "reset-env-branches pre",
    "reset:env": "reset-env-branches dev test pre"
  }
}

使用

npm run reset:dev
npm run reset:env
npx reset-env-branches dev test

Windows 说明

reset-env-branches 为纯 Node.js 实现,Windows 在 CMD / PowerShell 中直接可用,只需系统 PATH 中有 git 命令(安装 Git for Windows 即可),不需要 Git Bash,也无需改 script-shell。

bin/reset-env-branches.sh 仍保留,Mac/Linux 可直接 bash 调用;npm 入口统一走 .js。

新增脚本

  1. 在 bin/ 下新增 .js 实现(跨平台),可选保留 .sh 供本地 bash 调试
  2. 在 package.json 的 bin 字段注册 .js 命令名
  3. 递增 version 后发布

发布到 npm

cd front-cli
npm login
npm publish

或在仓库根目录:

npm run publish:front-cli