{"id":22382986,"url":"https://github.com/fey/frontend-project-lvl2","last_synced_at":"2025-05-13T00:58:01.393Z","repository":{"id":46386043,"uuid":"302880580","full_name":"fey/frontend-project-lvl2","owner":"fey","description":"A program defining the difference between two data structures.","archived":false,"fork":false,"pushed_at":"2025-04-18T16:13:32.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T00:57:57.393Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/fey.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-10-10T10:54:23.000Z","updated_at":"2025-04-18T16:13:36.000Z","dependencies_parsed_at":"2022-09-09T22:11:10.921Z","dependency_job_id":null,"html_url":"https://github.com/fey/frontend-project-lvl2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fey%2Ffrontend-project-lvl2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fey%2Ffrontend-project-lvl2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fey%2Ffrontend-project-lvl2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fey%2Ffrontend-project-lvl2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fey","download_url":"https://codeload.github.com/fey/frontend-project-lvl2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253850876,"owners_count":21973672,"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":[],"created_at":"2024-12-05T00:42:34.351Z","updated_at":"2025-05-13T00:58:01.355Z","avatar_url":"https://github.com/fey.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Hexlet tests and linter status:\n\u003ca href=\"https://github.com/fey/frontend-project-lvl2/actions\"\u003e\u003cimg src=\"https://github.com/fey/frontend-project-lvl2/workflows/hexlet-check/badge.svg\" alt=\"Actions Status\"\u003e\u003c/a\u003e\n\n\u003ca href=\"https://codeclimate.com/github/fey/frontend-project-lvl2/maintainability\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/68beae1c23a987a101cf/maintainability\" /\u003e\u003c/a\u003e\n\u003cimg src=\"https://github.com/fey/frontend-project-lvl2/workflows/CI/badge.svg\" /\u003e \u003ca href=\"https://codeclimate.com/github/fey/frontend-project-lvl2/test_coverage\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/68beae1c23a987a101cf/test_coverage\" /\u003e\u003c/a\u003e\n\n### Description\n\nGendiff - a program defining the difference between two data structures. \n\nThe capabilities of the utility:\n\n* Support for different input formats: yaml, json\n* Report generation as plain text, stylish and json\n\n### Requirements\n\n* NodeJS 14+\n\n### Installation\n\nClone or fork repository\n\n```sh\n$ make install # install dependencies\n$ make test # run tests\n$ make lint # run eslint\n```\n\n\nUsage example:\n\n```sh\n$ make setup\n# plain\n$ gendiff --format plain path/to/file.yml another/path/file.json\n\nProperty 'common.follow' was added with value: false\nProperty 'group1.baz' was updated. From 'bas' to 'bars'\nProperty 'group2' was removed\n\n# stylish\n$ gendiff filepath1.json filepath2.json\n\n{\n  + follow: false\n    setting1: Value 1\n  - setting2: 200\n  - setting3: true\n  + setting3: {\n        key: value\n    }\n  + setting4: blah blah\n  + setting5: {\n        key5: value5\n    }\n}\n```\n\nImporting\n\n```js\nimport genDiff from '@hexlet/code';\n\nconst diff = genDiff(filepath1, filepath2);\nconsole.log(diff);\n```\n\n### asciinema\n\nParse with default output\nhttps://asciinema.org/a/gpZ9rKPFuXQGoJddd3xQ2y2n3\n\nParse with plain output\nhttps://asciinema.org/a/oLndW0cO8KUM77GxVrpCp8IUK\n\nParse with json output\nhttps://asciinema.org/a/OISoLtILjt7cUMROL8q6HMs1b\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffey%2Ffrontend-project-lvl2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffey%2Ffrontend-project-lvl2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffey%2Ffrontend-project-lvl2/lists"}