- Node.js version 16 or higher.
- Terminal for performing files comparison via command line interface (CLI).
- Unix-like operating system.
- Clone project to your computer.
# via HTTPS
git clone https://github.com/webdb81/frontend-project-46.git
# or via Github CLI
gh repo clone webdb81/frontend-project-46
- Go to the main directory of cloning project.
cd frontend-project-46
- Install all the necessary dependencies.
make install
- Linking package to be able to run commands. This command may require admin rights aka
sudo
.
make link
Viewing the help about the utility:
gendiff -h
gendiff filePath1.json filePath2.json
Recursive comparison by default formatter styling:
gendiff __fixtures__/file1.json __fixtures__/file2.json
gendiff __fixtures__/file1.yml __fixtures__/file2.yml
Recursive comparison with setting formatter styling:
gendiff --format stylish __fixtures__/file1.json __fixtures__/file2.json
gendiff --format stylish __fixtures__/file1.yml __fixtures__/file2.yml
gendiff -f plain __fixtures__/file1.json __fixtures__/file2.json
gendiff -f plain __fixtures__/file1.yml __fixtures__/file2.yml
gendiff -f json __fixtures__/file1.json __fixtures__/file2.json
gendiff -f json __fixtures__/file1.yml __fixtures__/file2.yml