GithubHelp home page GithubHelp logo

git-report's Introduction

Git Report

This is a CLI that generates a report of your git repositories. Its based in your it commits in all branchs. It will look into your directory searching for git repositories and will search for logs of an author's e-mail (default your git global configuration) and export in console, JSON file or HTML table report.

Usage

$ npx git-report -h

Instalation

$ npm install -g git-report

CLI Arguments

$ node index.js -h
Usage: index [options]

Options:
  -V, --version                       output the version number
  -c, --cwd <path>                    directory of your projects (default: "process.cwd()")
  -s, --since <date>                  [DD/MM/YYYY] date of start seaching (default: "month start date")
  -u, --until <date>                  [DD/MM/YYYY] date of end seaching (default: "today date")
  -n, --number <number>               number of commits per project to search (default: 100)
  -t, --type <json | console | html>  type of output (default: "console")
  -e, --email <email>                 author email (default: "GLOBAL_EMAIL")
  -o, --output <path>                 path of output file if you not choose console (default: "process.cwd()/out")
  -h, --help                          display help for command

Exemple

If you run something like that:

$ npx git-report

Will produce a report like that:

{
  '01/04/2021': {
    'your-project-name-1': { numberCommits: 4, subjects: [Array] },
    'your-project-name-3': { numberCommits: 2, subjects: [Array] },
    'your-project-name-4': { numberCommits: 4, subjects: [Array] },
    'your-project-name-2': { numberCommits: 3, subjects: [Array] }
  },
  '05/04/2021': {
    'your-project-name-1': { numberCommits: 2, subjects: [Array] },
    'your-project-name-5': { numberCommits: 1, subjects: [Array] }
  },
  '06/04/2021': {
    'your-project-name-5': { numberCommits: 6, subjects: [Array] }
  },
  '07/04/2021': {
    'your-project-name-1': { numberCommits: 10, subjects: [Array] }
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.