Skip to content
Stats about a given file using git log.
TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dependabot
src
.gitignore
.travis.yml
LICENSE
README.md
package.json
tsconfig.json
yarn.lock

README.md

Git File Stats

Build Status install size npm version

Stats about a given file using git log.

Installation

yarn add git-fstat
# or with npm
npm i git-fstat

Usage

Very simple.

import gitFstat from 'git-fstat';

const stats = await gitFstat('My file.txt');
console.log(stats);

/*
  {
    createdAt: Date,
    modifiedAt: Date,
    changes: number
  }
*/
You can’t perform that action at this time.