{"id":19836217,"url":"https://github.com/opifexm/filecomparison","last_synced_at":"2026-05-05T14:08:46.073Z","repository":{"id":176713826,"uuid":"655823743","full_name":"opifexM/FileComparison","owner":"opifexM","description":"A robust command-line utility engineered to detect differences between two configuration files.","archived":false,"fork":false,"pushed_at":"2024-02-18T20:34:20.000Z","size":280,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T10:48:17.113Z","etag":null,"topics":["commanderjs","eslint","javascript","jest","js-yaml","lodash","nodejs"],"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/opifexM.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-19T17:13:38.000Z","updated_at":"2023-06-27T14:51:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf13578a-78d0-4bd3-bcfd-cac0524df197","html_url":"https://github.com/opifexM/FileComparison","commit_stats":null,"previous_names":["opifexm/fullstack-javascript-project-46"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opifexM%2FFileComparison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opifexM%2FFileComparison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opifexM%2FFileComparison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opifexM%2FFileComparison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opifexM","download_url":"https://codeload.github.com/opifexM/FileComparison/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241202138,"owners_count":19926564,"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":["commanderjs","eslint","javascript","jest","js-yaml","lodash","nodejs"],"created_at":"2024-11-12T12:10:30.576Z","updated_at":"2025-10-23T15:38:30.771Z","avatar_url":"https://github.com/opifexM.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status](https://github.com/opifexM/FileComparison/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/opifexM/FileComparison/actions/workflows/hexlet-check.yml)\n[![Node CI](https://github.com/opifexM/FileComparison/actions/workflows/nodejs.yml/badge.svg)](https://github.com/opifexM/FileComparison/actions/workflows/nodejs.yml)\n[![Maintainability](https://api.codeclimate.com/v1/badges/2512a54eb032a526707d/maintainability)](https://codeclimate.com/github/opifexM/FileComparison/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/2512a54eb032a526707d/test_coverage)](https://codeclimate.com/github/opifexM/FileComparison/test_coverage)\n\n# File Comparison\n\nFile Comparison is a robust command-line utility engineered to detect differences between two configuration files. Developed using JavaScript and Node.js, the application supports both JSON and YAML file formats, making it versatile and applicable to a variety of use cases.\n\n## Description\n\nFileComparison analyzes two configuration files and generates a detailed report outlining the differences. \nThis utility leverages the power of the Commander npm package to facilitate the handling of command-line inputs.\n\nThe solution employs a set of purpose-built functions to deliver this functionality:\nThe output is customizable, allowing users to select from three distinct report formats: `stylish`, `plain`, and `json`. \nThe `stylish` format is the default, presenting data like a JSON object with nested fields represented through indentation. \nThe `plain` format delivers the results in straightforward sentences, while the `json` format presents the difference report as a JSON object.\n\n## Usage\n\nUse the following command format to execute the utility:\n\n`gendiff [options] \u003cfilepath1\u003e \u003cfilepath2\u003e`\n\nOptions:\n\n-   `-V, --version`: Output the version number\n-   `-f, --format [type]`: Specify the output format (options: \"stylish\", \"plain\", \"json\"; default: \"stylish\")\n-   `-h, --help`: Display command help\n\nstylish:\n```bash\nnpm run bin/gendiff.js -f stylish file1.json file2.json\n```\n\nplain:\n```bash\nnpm run bin/gendiff.js -f plain file1.json file2.json\n```\n\njson:\n```bash\nnpm run bin/gendiff.js -f json file1.json file2.json\n```\n\n## Technologies Used\n\nFileComparison is built with a stack of powerful technologies:\n\n-   **JavaScript and Node.js**: The backbone of the application, providing the runtime environment.\n-   **Commander.js**: Handles command-line inputs.\n-   **Lodash**: Offers a comprehensive set of utility functions to streamline code.\n-   **js-yaml**: Parses YAML files.\n\nOn the development side, the project utilizes:\n\n-   **Jest**: Facilitates testing of the application.\n-   **ESLint**: Ensures adherence to code quality standards.\n-   **eslint-config-airbnb-base, eslint-plugin-fp, eslint-plugin-import, eslint-plugin-jest**: Provides additional eslint rules.\n\n## License\n\nFileComparison is licensed under the ISC license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopifexm%2Ffilecomparison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopifexm%2Ffilecomparison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopifexm%2Ffilecomparison/lists"}