Notify President Madagascar
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    git-dayspublic

    git-days Build Status Dependency Status

    How many days did you work on that project?

    CLI tool to get a print out of how many days each committer committed to a project and how many total commits they've made.

    Getting started

    npm install -g git-days
    cd /path/to/project
    git-days

    Output:

    ┌──────────────────────┬──────┬─────────┐
    │ Author               │ Days │ Commits │
    ├──────────────────────┼──────┼─────────┤
    │ Jane                 │ 46   │ 443     │
    ├──────────────────────┼──────┼─────────┤
    │ Bob                  │ 16   │ 96      │
    ├──────────────────────┼──────┼─────────┤
    │ Dave                 │ 70   │ 454     │
    ├──────────────────────┼──────┼─────────┤
    │ Joe                  │ 1    │ 1       │
    ├──────────────────────┼──────┼─────────┤
    │ Laura                │ 6    │ 12      │
    ├──────────────────────┼──────┼─────────┤
    │ Sue                  │ 13   │ 50      │
    ├──────────────────────┼──────┼─────────┤
    │ Richard              │ 4    │ 23      │
    ├──────────────────────┼──────┼─────────┤
    │ Christopher          │ 1    │ 1       │
    └──────────────────────┴──────┴─────────┘
    Total: 157 days (1080 commits)

    Options

    from

    Only consider commits after this date. An ISO formatted date passed to moment. e.g.

    git-days --from 2015-07-10

    to

    Only consider commits before this date. An ISO formatted date passed to moment. e.g.

    git-days --to 2015-01-01

    sort

    Sort the table by the specified column. Prefix with "-" to change sort direction to descending. Default is sort by author name, ascending. e.g.

    # Sort by commits ascending 
    git-days --sort commits
     
    # Sort by days descending 
    git-days --sort=-days

    Specify project path(s)

    Perhaps your project is split over multiple repos. No problem!

    git-days /path/to/project /path/to/related/project/repo

    A (╯°□°)╯︵TABLEFLIP side project.

    js-standard-style

    install

    npm i git-days

    Downloadslast 7 days

    1

    version

    1.0.1

    license

    ISC

    repository

    github.com

    last publish

    collaborators

    • avatar