GenDiff is a .js library and a CLI tool that compares two configuration files and shows a difference. Supports .json and .yaml/.yml files.
Available ouput formats:
- stylish - default
- plain
- json
- NodeJS >= 12 <= 18
- NPM >= 6.x
- Make
git clone [email protected]:Funkicide/frontend-project-lvl2.git
cd frontend-project-lvl2
make install
npm link
npm i ./frontend-project-lvl2/
gendiff format filepath filepath
import genDiff from '@hexlet/code'
genDiff(filepath, filepath, formatName)
https://asciinema.org/a/025xyRo7zDOc7X4jkHAHMzg2T
https://asciinema.org/a/v1GmUx7SbphdtxJI1GcO1u2EZ
https://asciinema.org/a/mKEWurhrhGnKg6kMGouRbalVz