Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krmax44/git-fstat
Stats about a given file using git log.
https://github.com/krmax44/git-fstat
Last synced: about 2 months 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 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T14:01:15.000Z (almost 3 years ago)
- Last Synced: 2024-10-03T22:14:42.352Z (3 months 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
[![Build Status](https://travis-ci.com/krmax44/git-fstat.svg?branch=master)](https://travis-ci.com/krmax44/git-fstat)
[![install size](https://packagephobia.now.sh/badge?p=git-fstat)](https://packagephobia.now.sh/result?p=git-fstat)
[![npm version](https://img.shields.io/npm/v/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
}
*/
```