- 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 linkViewing the help about the utility:
gendiff -hgendiff filePath1.json filePath2.jsonRecursive comparison by default formatter styling:
gendiff __fixtures__/file1.json __fixtures__/file2.jsongendiff __fixtures__/file1.yml __fixtures__/file2.ymlRecursive comparison with setting formatter styling:
gendiff --format stylish __fixtures__/file1.json __fixtures__/file2.jsongendiff --format stylish __fixtures__/file1.yml __fixtures__/file2.ymlgendiff -f plain __fixtures__/file1.json __fixtures__/file2.jsongendiff -f plain __fixtures__/file1.yml __fixtures__/file2.ymlgendiff -f json __fixtures__/file1.json __fixtures__/file2.jsongendiff -f json __fixtures__/file1.yml __fixtures__/file2.yml