Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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
  }
*/

About

Stats about a given file using git log.

Resources

License

Stars

Watchers

Forks

Packages

No packages published