{"id":13816792,"url":"https://github.com/SlimIO/json-diff","last_synced_at":"2025-05-15T18:32:26.876Z","repository":{"id":36342749,"uuid":"207989317","full_name":"SlimIO/json-diff","owner":"SlimIO","description":"Stdout difference from two JS Objects in the TTY","archived":false,"fork":false,"pushed_at":"2023-01-06T02:16:00.000Z","size":391,"stargazers_count":0,"open_issues_count":23,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-29T11:42:35.825Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SlimIO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-12T07:20:39.000Z","updated_at":"2020-05-27T16:10:05.000Z","dependencies_parsed_at":"2023-01-17T00:38:29.309Z","dependency_job_id":null,"html_url":"https://github.com/SlimIO/json-diff","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/SlimIO%2Fjson-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlimIO%2Fjson-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlimIO%2Fjson-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlimIO%2Fjson-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SlimIO","download_url":"https://codeload.github.com/SlimIO/json-diff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254397904,"owners_count":22064581,"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-08-04T06:00:21.470Z","updated_at":"2025-05-15T18:32:26.623Z","avatar_url":"https://github.com/SlimIO.png","language":"JavaScript","readme":"# Json-diff\n![version](https://img.shields.io/badge/dynamic/json.svg?url=https://raw.githubusercontent.com/SlimIO/json-diff/master/package.json\u0026query=$.version\u0026label=Version)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/SlimIO/json-diff/commit-activity)\n![MIT](https://img.shields.io/github/license/mashape/apistatus.svg)\n![size](https://img.shields.io/bundlephobia/min/@slimio/json-diff)\n![dep](https://img.shields.io/david/SlimIO/json-diff)\n![known vulnerabilities](https://img.shields.io/snyk/vulnerabilities/github/SlimIO/json-diff)\n[![Build Status](https://travis-ci.com/SlimIO/json-diff.svg?branch=master)](https://travis-ci.com/SlimIO/json-diff)\n\nDifferentiates JSON in you terminal with color.\n\n## Requirements\n- [Node.js](https://nodejs.org/en/) v12 or higher\n\n## Getting Started\n\nThis package is available in the Node Package Repository and can be easily installed with [npm](https://docs.npmjs.com/getting-started/what-is-npm) or [yarn](https://yarnpkg.com).\n\n```bash\n$ npm i @slimio/json-diff\n# or\n$ yarn add @slimio/json-diff\n```\n\n\n## Usage example\n```js\nconst jsonDiff = require(\"@slimio/json-diff\");\nconst json1 = {\n    number: 10,\n    array: [\"x\", \"y\", \"z\"]\n}\n\nconst json2 = {\n    number: 20,\n    array: [\"x\", \"y\", \"w\"]\n}\n\njsonDiff(json1, json2);\n```\nIt will produce the following stdout:\n\n![stdout](https://i.imgur.com/uVqCnqE.png)\n\n## API\n\n### jsonDiff(original: object, diff: object, options?: Options): void\nStdout the difference between two JSON Object. Available options is described by the following TypeScript interface\n```ts\ninterface Options {\n    color?: boolean;\n}\n```\n\n## Dependencies\n\n|Name|Refactoring|Security Risk|Usage|\n|---|---|---|---|\n|[kleur](https://github.com/lukeed/kleur)|Minor|Low|TTY color|\n\n## License\nMIT\n","funding_links":[],"categories":["Packages"],"sub_categories":["CLI (TTY etc..)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSlimIO%2Fjson-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSlimIO%2Fjson-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSlimIO%2Fjson-diff/lists"}