# blamer

> blamer is a tool for getting information about author of code from version control system

Latest version **1.0.7** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install blamer
pnpm add blamer
yarn add blamer
bun add blamer
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2025-10-24 |
| First published | 2014-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=8.9 |
| Dependencies | 2 |
| Unpacked size | 50.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | apk |

## Links

- npm: https://www.npmjs.com/package/blamer
- Repository: https://github.com/kucherenko/blamer
- Homepage: https://github.com/kucherenko/blamer#readme
- Issues: https://github.com/kucherenko/blamer/issues
- npm.io page: https://npm.io/package/blamer

## Dependencies (2)

- [execa](https://npm.io/package/execa.md) ^4.0.0
- [which](https://npm.io/package/which.md) ^2.0.2

## Recent versions

- 1.0.7 (latest) — 2025-10-24
- 1.0.6 — 2023-09-28
- 1.0.4 — 2023-09-17
- 1.0.3 — 2023-04-27
- 1.0.1 — 2020-03-09
- 0.1.13 — 2017-02-01
- 0.1.12 — 2016-08-19
- 0.1.11 — 2016-01-18
- 0.1.10 — 2016-01-16
- 0.1.9 — 2015-01-04
- 0.1.8 — 2014-12-01
- 0.1.7 — 2014-10-27
- 0.1.5 — 2014-10-27
- 0.1.3 — 2014-10-27
- 0.1.2 — 2014-10-26
- … 1 more at https://npm.io/package/blamer/versions

## README

Blamer
======

Blamer is a tool for get information about author of code from version control system. Supports git and subversion.

Status
------
[![NPM version](https://badge.fury.io/js/blamer.svg)](http://badge.fury.io/js/blamer)
[![Build Status](https://travis-ci.org/kucherenko/blamer.svg?branch=master)](https://travis-ci.org/kucherenko/blamer)
[![codecov](https://codecov.io/gh/kucherenko/blamer/branch/master/graph/badge.svg)](https://codecov.io/gh/kucherenko/blamer)
[![Code Climate](https://codeclimate.com/github/kucherenko/blamer/badges/gpa.svg)](https://codeclimate.com/github/kucherenko/blamer)


[![NPM](https://nodei.co/npm/blamer.png?downloads=true&downloadRank=true&stars=true)](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)

---
_Source: https://npm.io/package/blamer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
