{"id":17180120,"url":"https://github.com/rexskz/json-diff-kit-vue","last_synced_at":"2026-02-13T09:56:19.874Z","repository":{"id":238006647,"uuid":"793189807","full_name":"RexSkz/json-diff-kit-vue","owner":"RexSkz","description":"The Vue version of Viewer used by json-diff-kit. (Beta)","archived":false,"fork":false,"pushed_at":"2025-01-23T03:15:42.000Z","size":41,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T23:33:07.787Z","etag":null,"topics":["diff","json","vue"],"latest_commit_sha":null,"homepage":"https://json-diff-kit.js.org/","language":"Vue","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/RexSkz.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,"publiccode":null,"codemeta":null}},"created_at":"2024-04-28T17:18:56.000Z","updated_at":"2025-01-23T03:15:44.000Z","dependencies_parsed_at":"2024-05-03T21:11:05.725Z","dependency_job_id":null,"html_url":"https://github.com/RexSkz/json-diff-kit-vue","commit_stats":null,"previous_names":["rexskz/json-diff-kit-vue"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RexSkz/json-diff-kit-vue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexSkz%2Fjson-diff-kit-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexSkz%2Fjson-diff-kit-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexSkz%2Fjson-diff-kit-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexSkz%2Fjson-diff-kit-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RexSkz","download_url":"https://codeload.github.com/RexSkz/json-diff-kit-vue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexSkz%2Fjson-diff-kit-vue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013897,"owners_count":26085325,"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-10-12T02:00:06.719Z","response_time":53,"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":["diff","json","vue"],"created_at":"2024-10-15T00:28:49.382Z","updated_at":"2025-10-13T01:31:09.042Z","avatar_url":"https://github.com/RexSkz.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Diff Kit Viewer (Vue)\n\n[![NPM version][npm-image]][npm-url]\n[![Downloads][download-badge]][npm-url]\n\nThe Vue version of `Viewer` used by `json-diff-kit`. For more documents and usages, please refer to the [json-diff-kit's main repository](https://github.com/RexSkz/json-diff-kit/) as well as [the playground (React version)](https://json-diff-kit.js.org/).\n\n## Installation\n\n```bash\n# using npm\nnpm i @json-diff-kit/viewer-vue --save\n\n# using yarn\nyarn add @json-diff-kit/viewer-vue\n\n# using pnpm\npnpm add @json-diff-kit/viewer-vue\n```\n\n## Usage\n\n```vue\n\u003cscript setup lang=\"ts\"\u003e\nimport { Differ, Viewer } from '@json-diff-kit/viewer-vue';\nimport type { DifferOptions, ViewerProps } from '@json-diff-kit/viewer-vue';\n\nconst differProps: DifferOptions = {\n  detectCircular: false,\n  maxDepth: Infinity,\n  showModifications: true,\n  arrayDiffMethod: 'lcs',\n  ignoreCase: false,\n  recursiveEqual: true,\n  preserveKeyOrder: true,\n};\nconst differ = new Differ(differProps);\n\nconst before = { a: 1, b: 2, c: 3 };\nconst after = { a: 1, b: 3, d: 4 };\nconst diff = differ.diff(before, after);\n\nconst viewerProps: Partial\u003cViewerProps\u003e = {\n  diff,\n  indent: 2,\n  lineNumbers: true,\n  highlightInlineDiff: true,\n  inlineDiffOptions: {\n    mode: 'word',\n    wordSeparator: ' ',\n  },\n  hideUnchangedLines: true,\n  syntaxHighlight: { theme: 'monokai' },\n};\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cViewer v-bind=\"viewerProps\" /\u003e\n\u003c/template\u003e\n\n\u003cstyle\u003e\n/* If syntax highlight is enabled, you should import a theme file, or write it by yourself. */\n@import 'json-diff-kit/dist/viewer-monokai.css';\n\u003c/style\u003e\n```\n\n## License\n\nMIT\n\n[npm-url]: https://npmjs.org/package/json-diff-kit-vue\n[npm-image]: https://img.shields.io/npm/v/json-diff-kit-vue.svg\n\n[download-badge]: https://img.shields.io/npm/dm/json-diff-kit-vue.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexskz%2Fjson-diff-kit-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frexskz%2Fjson-diff-kit-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexskz%2Fjson-diff-kit-vue/lists"}