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

diy-git

v0.0.6

Published

a npm script about git

Downloads

4

Readme

n-git使用指南

此库主要是根据在我司开发过程中遇到的问题,对git指令做了二次封装,方便在开发中使用

安装

 mac   : sudo npm intall -g n-git
 window: npm install -g n-git

项目根目录创建.ngit文件,配置如下

module.exports = {
  "name": "ljj3"
}

创建分支的时候他会根据你配置的name字段,自动拼接对应的分支名字

常用指令集锦

1. help

ngit --help 
打印出来所有可用的命令

2. -c

ngit -c newbranchName

Switched to a new branch 'ljj3-20180907-newbranchName'

3. -l

该命令会过滤出来所有包含该关键字的分支名字,如果该命令后面不跟任何参数,会打印出来所有分支名称

ngit -l "ljj3"

[ 'ljj2-20180803-galleryZoom',
  'ljj2-20180806-allFail',
  'ljj3-20180808-pptTime',
  'ljj3-20180814-pptqy',
  'ljj3-20180817-fixDoubleImage',
  'ljj3-20180817-fixErrorImage',
  'ljj3-20180823-changeport',
  'ljj3-20180828-fixNotRender',
  'ljj3-20180907--o',
  'ljj3-20180907-testGitBranch' ]

总结

此npm命令只是闲来无事做着玩的小东西,还有一些对git命令的封装比如-a、-m都没做详细解释,自己尝试吧