Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/abra19/gendiff
- Owner: Abra19
- Created: 2022-03-07T11:14:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-12T17:36:12.000Z (10 months ago)
- Last Synced: 2024-01-13T09:02:27.494Z (10 months ago)
- Topics: js
- Language: JavaScript
- Homepage:
- Size: 282 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 started1. 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)