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

mic-cli

v0.1.2

Published

A node client for generating project templates and code management

Readme

分支管理逻辑

| 分支名 | 上游分支 | 下游分支 | 描述 | | ------ | -------- | -------- | ---- | | master | release | develop | 主(线上)分支,变基到release分支得来,拉出develop分支 | | develop | master | test | 开发集成分支,从master拉出,或变基到master分支得来,拉出test分支,用于功能开发集成 | | test | develop | release | 测试分支,从develop拉出,或变基到develop分支得来,拉出release分支,用于测试环境测试 | | release | test | master | 预发布分支,从test拉出,或变基到test分支得来,用于预发布环境测试 | | feature/* | develop | develop | 功能分支,从develop分支拉出,merge到develop,用于开发新功能 | | bugfix/* | develop | develop | 测试环境bug修复分支,从develop分支拉出,merge到develop,用于修复测试bug | | hotfix/* | master | master | 线上环境bug修复分支,从master分支拉出,测试完成后,merge到master,用于临时修复线上问题

安装

$ npm install mic-cli -g

指令

init

选择并下载模板。

$ mic init
  ? 请选择一个模板: (Use arrow keys)
  ❯ react 
    d3 

checkout [branchType]

新建或切换到某个类型分支。

$ mic checkout
  ? 请选择想要检出的分支: (Use arrow keys)
  ❯ develop 
    feature 
    test 
    release 
    hotfix 
    bugfix

$ mic checkout develop
  ✔ 检查是否有未commit
  ✔ checkout master分支
  ✔ pull master分支
  ✔ checkout develop分支

merge [branchName]

合并或变基到下游分支。branchName为空时,默认当前分支。

$ mic merge test
  ✔ 检查是否有未commit
  ✔ checkout test分支
  ✔ pull test分支
  ✔ checkout release分支
  ✔ pull release分支
  ✔ rebase test分支
  ✔ push release分支

配置

// config/index.js

// 主(发布)分支名
exports.MASTER_BRANCH_NAME = 'master';
// 开发分支名
exports.DEVELOP_BRANCH_NAME = 'develop';
// 功能分支名
exports.FEATURE_BRANCH_NAME = 'feature';
// 测试分支名
exports.TEST_BRANCH_NAME = 'test';
// 预发分支名
exports.RELEASE_BRANCH_NAME = 'release';
// hotfix分支名
exports.HOTFIX_BRANCH_NAME = 'hotfix';
// bugfix分支名
exports.BUGFIX_BRANCH_NAME = 'bugfix';

// template.json

{
  "templates": [{
      "name": "react",
      "repo": "https://github.com/username/templates.git",
      "branch": "react"
    },
    {
      "name": "d3",
      "repo": "https://github.com/username/templates.git",
      "branch": "d3"
    }
  ]
}