https://github.com/kucherenko/blamer
blamer is a tool for getting information about author of code from version control system
https://github.com/kucherenko/blamer
git javascript svn vcs
Last synced: 8 months ago
JSON representation
blamer is a tool for getting information about author of code from version control system
- Host: GitHub
- URL: https://github.com/kucherenko/blamer
- Owner: kucherenko
- License: mit
- Created: 2014-10-18T14:52:10.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-10-19T23:06:54.000Z (about 2 years ago)
- Last Synced: 2025-03-01T15:37:33.472Z (9 months ago)
- Topics: git, javascript, svn, vcs
- Language: TypeScript
- Size: 500 KB
- Stars: 7
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Blamer
======
Blamer is a tool for get information about author of code from version control system. Supports git and subversion.
Status
------
[](http://badge.fury.io/js/blamer)
[](https://travis-ci.org/kucherenko/blamer)
[](https://codecov.io/gh/kucherenko/blamer)
[](https://codeclimate.com/github/kucherenko/blamer)
[](https://nodei.co/npm/blamer/)
Setup
-----
npm install blamer
Usage
-----
```typescript
import Blamer from 'blamer';
// first parameter in Blamer is type of VCS, can be 'svn' or 'git', 'git' used by default
const blamer = new Blamer('git');
( async () => {
const result = await blamer.blameByFile('/path/to/file/in/repo');
console.log("Blame json: %j", result);
// will print
// Blame json: {"/path/to/file/in/repo": {
// "1": {
// "rev": "rev",
// "author": "author",
// "date": "2014-10-15T12:33:31.675393Z",
// "line": "1"
// }
// }
// }
})
```
License
-------
[The MIT License](https://github.com/kucherenko/blamer/blob/master/LICENSE)