# diff_calculator_margo

> Compares two configuration files and shows the difference

Latest version **1.6.4** (published 2020-07-18) · ISC license · 0 weekly downloads

## Install

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

Provides the command `gendiff`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.6.4 |
| Published | 2020-07-18 |
| First published | 2018-08-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 30.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nikiforova Margarita |
| Maintainers | nimfa_margo |

## Links

- npm: https://www.npmjs.com/package/diff_calculator_margo
- Repository: https://github.com/NimfaMargo/gendiff_hexlet
- Homepage: https://github.com/NimfaMargo/gendiff_hexlet#readme
- Issues: https://github.com/NimfaMargo/gendiff_hexlet/issues
- npm.io page: https://npm.io/package/diff_calculator_margo

## Dependencies (5)

- [ini](https://npm.io/package/ini.md) ^1.3.5
- [lodash](https://npm.io/package/lodash.md) ^4.17.19
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.14.0
- [commander](https://npm.io/package/commander.md) ^2.20.3
- [jest-context](https://npm.io/package/jest-context.md) ^2.1.0

## Recent versions

- 1.6.4 (latest) — 2020-07-18
- 1.6.3 — 2019-04-03
- 1.6.2 — 2019-04-03
- 1.6.1 — 2018-08-11
- 1.6.0 — 2018-08-10
- 1.5.0 — 2018-08-10
- 1.3.0 — 2018-08-07
- 1.2.0 — 2018-08-07
- 1.1.1 — 2018-08-06
- 1.1.0 — 2018-08-06
- 1.0.1 — 2018-08-06

## README

[![Maintainability](https://api.codeclimate.com/v1/badges/5467a49bf3a8894a2590/maintainability)](https://codeclimate.com/github/NimfaMargo/gendiff_hexlet/maintainability)

[![Build Status](https://travis-ci.com/NimfaMargo/gendiff_hexlet.svg?branch=master)](https://travis-ci.com/NimfaMargo/gendiff_hexlet)

## Diff calculator
An utility, that compares two configuration files and shows the difference.

#### Useful features:
- Support multiple formats.
- Generate report in plain text, pretty and JSON formats.

## Install
You need npm. It is bundled with [node](https://nodejs.org/en/download/)

```
$ npm i -g diff_calculator_margo
```                               

## Usage
```
Usage:
$ gendiff --format[type] <first-file> <second-file>

Types:
 - recursive
 - plain
 - json

Options:

  -V, --version        output the version number
  -f, --format [type]  output format (default: "recursive")
  -h, --help           output usage information
```   

## Example
```   
$ gendiff --format plain first-config.ini second-config.ini
Setting "common.setting2" deleted.
Setting "common.setting4" added with value "blah blah".
Setting "group1.baz" changed from "bas" to "bars".
Section "group2" deleted.
```   

## Uninstall
```
$ npm uninstall -g diff_calculator_margo
```

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