Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abra19/gendiff

This project is implementing a function genDiff that compare two configuration files and show a difference
https://github.com/abra19/gendiff

js

Last synced: 6 days ago
JSON representation

This project is implementing a function genDiff that compare two configuration files and show a difference

Awesome Lists containing this project

README

        

### Hexlet tests and linter status:
[![Actions Status](https://github.com/Abra19/frontend-project-lvl2/workflows/hexlet-check/badge.svg)](https://github.com/Abra19/frontend-project-lvl2/actions)
[![Maintainability](https://api.codeclimate.com/v1/badges/92fde65ab3d2fe28719f/maintainability)](https://codeclimate.com/github/Abra19/frontend-project-lvl2/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/92fde65ab3d2fe28719f/test_coverage)](https://codeclimate.com/github/Abra19/frontend-project-lvl2/test_coverage)
[![example workflow](https://github.com/Abra19/frontend-project-lvl2/actions/workflows/node.js.yml/badge.svg)](https://github.com/Abra19/frontend-project-lvl2/actions)
### Project Description:
This project is implementing a function genDiff that compare two configuration files and show a difference.

To compare files, you need to pass to the function `genDiff` two args: `../pathToFile1`, `../pathToFile2`.

The path to the file can be either relative: `../somefile` or absolute `/somedir/somefile`.

The function can be used as a library or as a console utility
### To get started

1. Clone git repo: `git clone [email protected]:Abra19/gendiff.git`
2. Install package: `make install`
3. Link: `npm link`

[![asciicast](https://asciinema.org/a/UftaS3pMvoUpBoyoEFkt37AVu.svg)](https://asciinema.org/a/UftaS3pMvoUpBoyoEFkt37AVu)
### Some examples of use as a console utility:

### JSON simple tree

[![asciicast](https://asciinema.org/a/IGOK5BtF81gDNywfZQVVLUxaY.svg)](https://asciinema.org/a/IGOK5BtF81gDNywfZQVVLUxaY)

### YML simple tree

[![asciicast](https://asciinema.org/a/ksboO8hFlpp6bZlUkgvxPfbWh.svg)](https://asciinema.org/a/ksboO8hFlpp6bZlUkgvxPfbWh)

### format: stylish (default)
[![asciicast](https://asciinema.org/a/OQMCBCiYOh8ie92xD1Q76md4Q.svg)](https://asciinema.org/a/OQMCBCiYOh8ie92xD1Q76md4Q)

### format: plain
[![asciicast](https://asciinema.org/a/rvZVoyNtKQENmluWirdK3YxTb.svg)](https://asciinema.org/a/rvZVoyNtKQENmluWirdK3YxTb)

### format: json
[![asciicast](https://asciinema.org/a/oFAkhZ0b9kjd6i5r8Ff9i0EBZ.svg)](https://asciinema.org/a/oFAkhZ0b9kjd6i5r8Ff9i0EBZ)