{"id":18256017,"url":"https://github.com/ull-esit-pl/ast-compare","last_synced_at":"2026-07-16T17:37:22.227Z","repository":{"id":230548340,"uuid":"779616861","full_name":"ULL-ESIT-PL/ast-compare","owner":"ULL-ESIT-PL","description":"Some tools to compare json and ASTs","archived":false,"fork":false,"pushed_at":"2024-03-30T11:31:23.000Z","size":252,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T06:06:29.038Z","etag":null,"topics":["ast","ast-comparison","json-compare"],"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/ULL-ESIT-PL.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":"2024-03-30T10:13:39.000Z","updated_at":"2024-03-30T11:30:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c2c4085-75c3-4682-983a-ff409a737d5f","html_url":"https://github.com/ULL-ESIT-PL/ast-compare","commit_stats":null,"previous_names":["ull-esit-pl/ast-compare"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ULL-ESIT-PL/ast-compare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ULL-ESIT-PL%2Fast-compare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ULL-ESIT-PL%2Fast-compare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ULL-ESIT-PL%2Fast-compare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ULL-ESIT-PL%2Fast-compare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ULL-ESIT-PL","download_url":"https://codeload.github.com/ULL-ESIT-PL/ast-compare/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ULL-ESIT-PL%2Fast-compare/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35553295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"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":["ast","ast-comparison","json-compare"],"created_at":"2024-11-05T10:19:27.032Z","updated_at":"2026-07-16T17:37:22.193Z","avatar_url":"https://github.com/ULL-ESIT-PL.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AST comparison\n\nYou can compare ASTs in different ways: \n\n- Use VSCode \"select to compare\" feature to compare the JSON files. Likely one of the best.\n  \n  ![images/vscode.png](images/vscode.png)\n- Use the npm package `json-diff-kit` to compare JSON files.\n- Use the `check` method of ast-type nodes to check consistency of the AST.\n- Use an ordinary `diff` tool to compare JSON files.\n  \n  ```diff\n  ➜  ast-compare git:(main) diff actual-a-equal-4.json expected-a-equal-4.json \n    10,11c10\n    \u003c             \"type\": \"Identifier\",\n    \u003c             \"name\": \"a\"\n    ---\n    \u003e             \"type\": \"Identifier\"\n    14,15c13\n    \u003c             \"type\": \"Literal\",\n    \u003c             \"value\": 4\n    ---\n    \u003e             \"type\": \"Literal\"\n    ```\n- Another way to compare JSON files is to use the website https://www.jsondiff.com/.\n- Use the npm package [ast-compare](ast-compare.md) to compare ASTs. \n- Use the npm package [json-diff](json-diff.md) to compare JSON files.\n  \n## json-diff-kit\n\n```\n➜  ast-compare git:(main) ✗ npx jsondiff --help\nUsage: jsondiff [options] [command]\n\nA better JSON differ \u0026 viewer, support LCS diff for arrays and recognise some changes as \"modification\" apart from simple \"remove\"+\"add\".\n\nOptions:\n  -V, --version                   output the version number\n  -h, --help                      display help for command\n\nCommands:\n  run [options] \u003cbefore\u003e \u003cafter\u003e  Shows a difference between two JSON files.\n  help [command]                  display help for command\n```\n\n![https://raw.githubusercontent.com/RexSkz/json-diff-kit/master/preview.png](https://raw.githubusercontent.com/RexSkz/json-diff-kit/master/preview.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Full-esit-pl%2Fast-compare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Full-esit-pl%2Fast-compare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Full-esit-pl%2Fast-compare/lists"}