{"id":23061918,"url":"https://github.com/techaurelian2/yamldiff","last_synced_at":"2025-08-08T14:08:09.832Z","repository":{"id":143446832,"uuid":"615697836","full_name":"TechAurelian2/yamldiff","owner":"TechAurelian2","description":"A simple command-line tool that allows you to compare two YAML files and see the differences between them.","archived":false,"fork":false,"pushed_at":"2023-03-18T13:00:19.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T07:21:40.358Z","etag":null,"topics":["cli","comparison","comparison-tool","diff","diff-tool","file-diff","nodejs","yaml","yaml-diff","yaml-files"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TechAurelian2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-03-18T12:20:06.000Z","updated_at":"2023-03-18T12:29:32.000Z","dependencies_parsed_at":"2024-03-03T11:06:41.016Z","dependency_job_id":"52b56bbd-f097-4342-8172-ace6e2d5da89","html_url":"https://github.com/TechAurelian2/yamldiff","commit_stats":null,"previous_names":["techaurelian2/yamldiff"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TechAurelian2/yamldiff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechAurelian2%2Fyamldiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechAurelian2%2Fyamldiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechAurelian2%2Fyamldiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechAurelian2%2Fyamldiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechAurelian2","download_url":"https://codeload.github.com/TechAurelian2/yamldiff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechAurelian2%2Fyamldiff/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269432993,"owners_count":24415971,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","comparison-tool","diff","diff-tool","file-diff","nodejs","yaml","yaml-diff","yaml-files"],"created_at":"2024-12-16T03:18:50.689Z","updated_at":"2025-08-08T14:08:09.802Z","avatar_url":"https://github.com/TechAurelian2.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yamldiff\n\n**Compares two YAML files and outputs the differences between them.**\n\n```\n'##:::'##::::'###::::'##::::'##:'##:::::::'########::'####:'########:'########:\n. ##:'##::::'## ##::: ###::'###: ##::::::: ##.... ##:. ##:: ##.....:: ##.....::\n:. ####::::'##:. ##:: ####'####: ##::::::: ##:::: ##:: ##:: ##::::::: ##:::::::\n::. ##::::'##:::. ##: ## ### ##: ##::::::: ##:::: ##:: ##:: ######::: ######:::\n::: ##:::: #########: ##. #: ##: ##::::::: ##:::: ##:: ##:: ##...:::: ##...::::\n::: ##:::: ##.... ##: ##:.:: ##: ##::::::: ##:::: ##:: ##:: ##::::::: ##:::::::\n::: ##:::: ##:::: ##: ##:::: ##: ########: ########::'####: ##::::::: ##:::::::\n:::..:::::..:::::..::..:::::..::........::........:::....::..::::::::..::::::::\n```\n\nThe `yamldiff` script is a simple command-line tool that allows you to compare two YAML files and see the differences between them. YAML is a popular data serialization format that is used for configuration files, data exchange, and other purposes. When trying to debug a problem with a configuration file or when you want to see how a YAML file has changed over time, 'yamldiff' can be quite useful.\n\nThe `yamldiff` script is easy to use. You simply run the script with the names of the two YAML files that you want to compare. The script will then show you the differences between the two files, highlighting the changes in color. This makes it easy to see what has changed between the two files and to quickly identify any issues that may be causing problems.\n\nOverall, `yamldiff` is a useful tool for anyone who frequently works with YAML files. Whether you are a developer, a system administrator, or a technical writer, it can help you quickly and easily compare YAML files and identify any issues that may be causing problems.\n\n## Installation\n\nTo install `yamldiff`, run the following command:\n\n```bash\nnpm install yamldiff\n```\n\n## Usage\n\nTo use `yamldiff`, run the following command:\n\n```bash\nnode yamldiff.js \u003cfile1\u003e \u003cfile2\u003e\n```\n\nWhere `\u003cfile1\u003e` and `\u003cfile2\u003e` are the pathnames of the YAML files you want to compare.\n\n`yamldiff` will normalize the two YAML files and then compare them. It will ignore comments and whitespaces, and it will be smart enough to compare a value that in one file is written on a single line, and in the other file is written on multiple lines. If there are no differences between the two files, `yamldiff` will display a message saying that the two files are identical in content.\n\n## Examples\n\n```bash\n$ node yamldiff.js file1.yaml file2.yaml\nThe two files are different.\nDifferences:\n- name: John\n+ name: Jane\n  age: 30\n```\n\nWhen `yamldiff` normalizes the two YAML files, it converts them to a canonical form that is easier to compare. This means that two YAML files that are semantically equivalent but have different formatting or structure will be considered identical in content by `yamldiff`.\n\nFor example, consider the following two YAML files:\n\n```yaml\nname: John\nage: 30\n# An extra comment\n```\n\n```yaml\nname: John\nage: 30\n```\n\nThese two files are semantically equivalent, but they have different formatting. `yamldiff` will normalize these files and compare them, and will consider them to be identical in content.\n\nAnother example is when two YAML files have the same data but in a different order. For example:\n\n```yaml\nname: John\nage: 30\n```\n\n```yaml\nage: 30\nname: John\n```\n\nAgain, these two files are semantically equivalent, but they have the data in a different order. `yamldiff` will normalize these files and compare them, and will consider them to be identical in content.\n\n## License\n\n`yamldiff` is licensed under the MIT License. See `LICENSE` for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechaurelian2%2Fyamldiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechaurelian2%2Fyamldiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechaurelian2%2Fyamldiff/lists"}