https://github.com/krmax44/git-fstat
Stats about a given file using git log.
https://github.com/krmax44/git-fstat
Last synced: about 1 month ago
JSON representation
Stats about a given file using git log.
- Host: GitHub
- URL: https://github.com/krmax44/git-fstat
- Owner: krmax44
- License: mit
- Created: 2019-09-17T15:52:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T14:01:15.000Z (over 4 years ago)
- Last Synced: 2025-02-08T21:02:53.033Z (over 1 year ago)
- Language: TypeScript
- Size: 1.11 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git File Stats
[](https://travis-ci.com/krmax44/git-fstat)
[](https://packagephobia.now.sh/result?p=git-fstat)
[](https://www.npmjs.com/package/git-fstat)
Stats about a given file using `git log`.
## Installation
```bash
yarn add git-fstat
# or with npm
npm i git-fstat
```
## Usage
Very simple.
```js
import gitFstat from 'git-fstat';
const stats = await gitFstat('My file.txt');
console.log(stats);
/*
{
createdAt: Date,
modifiedAt: Date,
changes: number
}
*/
```