{"id":15011212,"url":"https://github.com/timursus/differencecalculator","last_synced_at":"2026-04-04T00:03:52.088Z","repository":{"id":40791049,"uuid":"251078181","full_name":"timursus/DifferenceCalculator","owner":"timursus","description":"Compare configuration files","archived":false,"fork":false,"pushed_at":"2023-01-05T18:19:12.000Z","size":2004,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-12T11:18:31.145Z","etag":null,"topics":["cli","comparison","hexlet-projects","jest","nodejs","testing","trees","utility"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@timursus/gendiff","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timursus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-29T16:27:22.000Z","updated_at":"2020-12-26T10:22:18.000Z","dependencies_parsed_at":"2023-02-04T10:00:19.289Z","dependency_job_id":null,"html_url":"https://github.com/timursus/DifferenceCalculator","commit_stats":null,"previous_names":["timursus/frontend-project-lvl2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timursus%2FDifferenceCalculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timursus%2FDifferenceCalculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timursus%2FDifferenceCalculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timursus%2FDifferenceCalculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timursus","download_url":"https://codeload.github.com/timursus/DifferenceCalculator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243307333,"owners_count":20270256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","comparison","hexlet-projects","jest","nodejs","testing","trees","utility"],"created_at":"2024-09-24T19:39:44.051Z","updated_at":"2025-12-29T00:39:01.101Z","avatar_url":"https://github.com/timursus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Difference calculator\n[![Workflow](https://github.com/timursus/frontend-project-lvl2/workflows/Node%20CI/badge.svg)](https://github.com/timursus/frontend-project-lvl2/actions)\n[![Maintainability](https://api.codeclimate.com/v1/badges/477e5fd164b0049a52d6/maintainability)](https://codeclimate.com/github/timursus/frontend-project-lvl2/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/477e5fd164b0049a52d6/test_coverage)](https://codeclimate.com/github/timursus/frontend-project-lvl2/test_coverage)\n\nCompares two configuration files and shows a difference.\n\n - Supports different data formats: JSON, YAML, INI.\n\n - Shows a report in plain text, pretty, or json formats.\n\n - Works as CLI utility or as node.js module.\n\n## Getting started\n```bash\nnpm install -g @timursus/gendiff\n```\n\u003e Requires [Node](https://nodejs.org/) v13+\n\n## Usage\n```\ngendiff [options] \u003cfilepath1\u003e \u003cfilepath2\u003e\n\nOptions:\n  -h, --help           display help for command\n  -V, --version        output the version number\n  -f, --format \u003ctype\u003e  output format [pretty, plain, json] (default: \"pretty\")\n  --color              enable color highlighting for \"pretty\" or \"plain\" output\n```\n\n## Demonstrations of use\nComparison of nested structures. Color output.\n[![asciicast_gendiff](https://asciinema.org/a/FOPjvaMJ5HAkFHHOmiwnIzHcc.svg)](https://asciinema.org/a/FOPjvaMJ5HAkFHHOmiwnIzHcc)\n\n### API\n**gendiff (filepath1, filepath2 [, outputFormat = 'json'])**\n\nBy default, `gendiff` returns a diff tree in json string\n``` javascript\nimport gendiff from '@timursus/gendiff';\n\nconst diff = gendiff(filepath1, filepath2);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimursus%2Fdifferencecalculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimursus%2Fdifferencecalculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimursus%2Fdifferencecalculator/lists"}