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

wogit

v1.0.1

Published

A command line tool to speed up GitHub cloning.

Downloads

33

Readme

wogit

wogit 是一个 git clone 镜像加速命令行工具,wogit 通过封装和透传,使用上与git基本一致,只是添加了镜像选项,能够替代 git 作为日常使用。

安装

npm i wogit -g

使用

wogit的使用,除了支持几个指定特定源的选项之外,其他的与git一致,基本是把git替换成wogit即可

# from
git clone https://github.com/chalk/chalk.git

# ti
wogit clone https://github.com/chalk/chalk.git

# 其他参数不变,跟使用git一样,如
wogit clone https://github.com/chalk/chalk.git --depth=1

镜像切换

wogit默认使用cnpmjs镜像,使用 wogit -h 可以随时查看镜像切换的选项

➜ wogit -h
Usage: wogit [options]

Options:
  -V, --version   output the version number
  -cn --cnpm      cnpmjs镜像(默认)
  -fa --fastgit   fastgit镜像
  -ge --gitee     gitee镜像
  -gc --gitclone  gitclone镜像
  -gh --github    使用原始github镜像
  -h, --help      display help for command

比如

# fastgit镜像
wogit clone https://github.com/chalk/chalk.git -fa
wogit clone https://github.com/chalk/chalk.git --fastgit

# gitee镜像
wogit clone https://github.com/chalk/chalk.git -ge
wogit clone https://github.com/chalk/chalk.git -gitee

# 其他不一而足

说明:并非所有的仓库都有加速,请根据提示,确认是否需要使用-gh强制直接使用github。

说明

wogit只会在 操作为clone且远程为github仓库 时才会使用加速的源,其他情况是透传的,因此clone外的其他操作也是支持的,可以替代git作为日常使用。

当然,也有不好的地方——命令多了两个字符 😂 没办法,短的名字都被早早占了坑了。