# compare-files

> Compare files contents

Latest version **0.7.1** (published 2018-02-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install compare-files
pnpm add compare-files
yarn add compare-files
bun add compare-files
```

Provides the command `gendiff`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.1 |
| Published | 2018-02-26 |
| First published | 2018-02-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 25 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ignat |
| Maintainers | buyfn |
| Keywords | hexlet, diff |

## Links

- npm: https://www.npmjs.com/package/compare-files
- Repository: https://github.com/buyfn/project-lvl2-s221
- Homepage: https://github.com/buyfn/project-lvl2-s221#readme
- Issues: https://github.com/buyfn/project-lvl2-s221/issues
- npm.io page: https://npm.io/package/compare-files

## Dependencies (4)

- [ini](https://npm.io/package/ini.md) ^1.3.5
- [lodash](https://npm.io/package/lodash.md) ^4.17.5
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.10.0
- [commander](https://npm.io/package/commander.md) ^2.14.1

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 0.7.1 (latest) — 2018-02-26
- 0.7.0 — 2018-02-25
- 0.6.0 — 2018-02-24
- 0.5.1 — 2018-02-23
- 0.5.0 — 2018-02-23
- 0.4.0 — 2018-02-21
- 0.3.0 — 2018-02-21
- 0.2.1 — 2018-02-20
- 0.2.0 — 2018-02-20
- 0.1.0 — 2018-02-20
- 0.0.2 — 2018-02-19
- 0.0.1 — 2018-02-19

## README

[![Build Status](https://travis-ci.org/buyfn/project-lvl2-s221.svg?branch=master)](https://travis-ci.org/buyfn/project-lvl2-s221)
[![Maintainability](https://api.codeclimate.com/v1/badges/657b679af6837c399ab8/maintainability)](https://codeclimate.com/github/buyfn/project-lvl2-s221/maintainability)
# About
Compares two files, shows how they differ.

# Installation
```bash
> npm install -g compare-files
```

# Usage
Let's say you have two json files:
## file1.json
```json
{
    "host": "hexlet.io",
    "timeout": 50,
    "proxy": "123.234.53.22"
}
```
## file2.json
```json
{
    "timeout": 20,
    "verbose": true,
    "host": "hexlet.io"
}
```

To find out the differences between those two files, run `gendiff` in the terminal with paths to the files. For example:
```bash
> gendiff file1.json file2.json --format plain
Property 'timeout' was updated from '50' to '20'
Property 'proxy' was removed
Property 'verbose' was added with 'true'
```

## Supported formats
- json,
- yaml,
- ini.

## Output formats
- plain text,
- json.

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