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 🙏

© 2024 – Pkg Stats / Ryan Hefner

branchinfo

v1.0.4

Published

Give each git branch a note, to clearly record the role of each branch.

Downloads

1

Readme

branchinfo

Give git branch notes. Because much git branch make me so difficult to understand. 给git分支加注释,解决分支过多无法分辨各个分支的作用的问题

Intro

工作繁重下,测试不断提来bug,不断的在分支之间切来切去来改bug,改完一个bug之后想再切回原来分支,发现这么多分支,忘记了哪一个分支是刚刚的了,或许你可以单独找个地方记录分支的作用,但是不同的项目同样的分支名又会导致分支混乱或者是查看分支还要开着一个文件.

又或者是长时间不打开一个项目,忽然该项目需要修改,面对着这么多分支,不知道从何改起?

这个时候需要来一个命令行工具来帮助分辨某一个分支到底是做什么的.

branchinfo借助node的强大能力,来实现命令行中为git的分支来添加注释.

如果你还没有安装node,请访问https://nodejs.org/en/

在node被安装的时候同时还会安装一个包管理器npm,使用该包管理器来安装该包.

Install

npm install branchinfo -g

Usage

在成功安装之后会在你的命令行中添加一个命令gb

打开你的项目根目录,添加一个新文件.gitbranch,键入以下内容:

master 主分支
0.0.1 为项目添加README文件
0.0.2 增加一个特别棒的功能,自动写代码
0.0.3 自动写JavaScript,放开程序员的手
0.0.4 以上都是开玩笑的啦

为你的项目添加以上分支:

git branch 0.0.1
git branch 0.0.2
git branch 0.0.3
git branch 0.0.4

这个是用来测试的分支,千万不要用来开发功能哦.

在完成以上之后,在命令行中键入gb,然后回车,你就会发现你的注释已经生效:

  0.0.1 - 为项目添加README文件
  0.0.2 - 增加一个特别棒的功能,自动写代码
  0.0.3 - 自动写JavaScript,放开程序员的手
  0.0.4 - 以上都是开玩笑的啦
* master - 主分支

分支的注释会被加粗显示,当前处于的分支的注释会被加下划线.