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

daily-git

v1.0.5

Published

Get all of your commits on github (default: since last work day (0 am).

Readme

NPM version Dependency Status

Daily Git(hub)

Get all of your commits on github (default: since last work day (0 am).

Create new github token

https://github.com/settings/tokens/new (use default settings)

Save github credentials using npm config

npm config set daily-git:token <TOKEN>
npm config set daily-git:username <USERNAME>

Installation & How to use

npm install -g daily-git

# default is 1 day
daily-git

# want to have last 10 days?
daily-git --days 10

Use it as a dependency

You can use daily-git as a dependency.

Installation

npm install daily-git --save

Examples

Print your daily and the request limit.

var dailygit = require('daily-git');

// init function must be called first
dailygit.init()
        .then(dailygit.print.daily)
        .then(dailygit.print.limit);

Do the same manually.

var dailygit = require('daily-git');

dailygit.init()
        .then(dailygit.getReposBranchesAndCommits)
        .each(function(result) {

          // result.repoData = { name: '', owner: '', repo: octonodeRepo }
          // result.branches
          // result.branches[i].commits

          result.branches.forEach(function(branch) {
            if (branch.commits.length) {
              dailygit.print.repoData(result.repoData, branch);
              branch.commits.forEach(dailygit.print.commit);
            }
          });
        });

Available functions

var dailygit = require('daily-git');

dailygit.init(10);                          // must be called first, set days to 10

dailygit.print.info('info to print');       // prints given string as an info to console
dailygit.print.error('error to print');     // prints given string as an error to console
dailygit.print.commit(commit);              // prints given commit to console

// every of the following functions returns a bluebird Promise https://github.com/petkaantonov/bluebird/blob/master/API.md

dailygit.print.limit();                     // prints remaining requests count
dailygit.print.daily();                     // prints your daily git(hub)

dailygit.limit();                           // promise result: an object: { left: 5000, max: 5000 }
dailygit.getRepos();                        // promise result: an array of octnode repos, e.g. client.repo('pksunkara/octonode')
dailygit.getOrganizationRepos();            // promise result: an array of octonode repos, e.g. client.repo('pksunkara/octonode')
dailygit.getAllRepos();                     // promise result: an array of octonode repos, e.g. client.repo('pksunkara/octonode')
dailygit.getBranches(repo);                 // promise result: an array of branch objects: https://developer.github.com/v3/repos/#list-branches
dailygit.getRepoCommits(repoData, branch);  // promise result: an array of commit objects: https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
dailygit.getReposBranchesAndCommits();      // promise result: [{repoData: { name: '', owner: '', repo: octonodeRepo }, branches: [{ name: '', commits: [...] }] ...} ...]