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

greenhat

v0.0.2

Published

greenhat is a quick hack for decorating your GitHub contribution calendar with commits for the past n days. It uses the GIT_AUTHOR_DATE and GIT_COMMITTER_DATE environmental variables to make commits appear in the past. Be warned that greenhat will clobber

Downloads

7

Readme

greenhat

greenhat 是一个通过在过去的 n 天内提交一些信息来快速的装饰你的 GitHub contribution calendar 的一个小工具。想法源自 https://github.com/4148/greenhat, 此为 Node 的实现版本,并加入了系统环境变量之中。它使用了 GIT_AUTHOR_DATEGIT_COMMITTER_DATE 这两个环境变量来创造出在过去的提交记录。需要警告的是,greenhat 会破坏掉你的仓库的提交记录。

安装

确保在安装之前你已经安装好了 node npm 环境。

$ npm install -g greenhat

使用

确保你的远程仓库地址已经设置过,并且也设置过 SSH 部署公钥。在目标仓库中,你可以通过指定一个整数 n 来表示从 n 天前开始创造提交记录,例如:

$ greenhat <n> 

or:

$ greenhat -d <n> 

如果你设置的时间太长,那通常需要花费一段时间才能完成所有的提交。如果 greenhat 在完成任务前终止了,你也可以通过指定一个特定格式的日期来从某天开始继续进行提交。就像是这样:

$ greenhat -d <n> -D <date> 

n 表示你想创造提交记录的天数。 date 是一个 yyyy-mm-dd 格式的字符串。(e.g. 2015-11-13)

如果你使用了 -l, --log 参数,程序将会在终端中打印出所有的执行日志。