{"id":30060236,"url":"https://github.com/tiaanduplessis/compare-obj","last_synced_at":"2025-08-08T01:42:58.829Z","repository":{"id":57204546,"uuid":"89918518","full_name":"tiaanduplessis/compare-obj","owner":"tiaanduplessis","description":"Recursively compare 2 objects on a property bases to get the difference","archived":false,"fork":false,"pushed_at":"2019-07-20T09:40:24.000Z","size":138,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T18:03:56.179Z","etag":null,"topics":["compare","diff","objects","properties"],"latest_commit_sha":null,"homepage":null,"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/tiaanduplessis.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}},"created_at":"2017-05-01T11:29:12.000Z","updated_at":"2022-05-30T09:48:25.000Z","dependencies_parsed_at":"2022-09-18T00:42:12.284Z","dependency_job_id":null,"html_url":"https://github.com/tiaanduplessis/compare-obj","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tiaanduplessis/compare-obj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fcompare-obj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fcompare-obj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fcompare-obj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fcompare-obj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiaanduplessis","download_url":"https://codeload.github.com/tiaanduplessis/compare-obj/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fcompare-obj/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269352285,"owners_count":24402672,"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-07T02:00:09.698Z","response_time":73,"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":["compare","diff","objects","properties"],"created_at":"2025-08-08T01:42:46.061Z","updated_at":"2025-08-08T01:42:58.797Z","avatar_url":"https://github.com/tiaanduplessis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# compare-obj\n[![package version](https://img.shields.io/npm/v/compare-obj.svg?style=flat-square)](https://npmjs.org/package/compare-obj)\n[![package downloads](https://img.shields.io/npm/dm/compare-obj.svg?style=flat-square)](https://npmjs.org/package/compare-obj)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![package license](https://img.shields.io/npm/l/compare-obj.svg?style=flat-square)](https://npmjs.org/package/compare-obj)\n[![make a pull request](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\n\u003e Recursively compare 2 objects on a property bases to get the difference\n\n## Table of Contents\n\n- [About](#about)\n- [Features](#features)\n- [Usage](#usage)\n- [Install](#install)\n- [Contribute](#contribute)\n- [License](#License)\n\n## About\n\nExplain the problem the package is trying to solve.\n\n## Features\n\n- Name key features e.g. size, performance, how it differs from similar solutions etc.\n\n## Usage\n\n```js\nconst compare = require('compare-obj')\n\nconst data = {\n  id: 'foobarbaz',\n  name: 'Bazzy',\n  contactNumber: '0000000',\n  contactIds: ['one', 'two', 'three']\n}\n\nconst initialValues = {\n  id: 'foobarbaz',\n  name: 'Bazzy',\n  contactIds: ['one', 'two']\n}\n\nconsole.log(compare(data, initialValues))\n// { contactNumber: '0000000', contactIds: [ 'three' ] }\n\n```\n\n\n## Install\n\nThis project uses [node](https://nodejs.org) and [npm](https://www.npmjs.com).\n\n```sh\n$ npm install compare-obj\n$ # OR\n$ yarn add compare-obj\n```\n\n## Contribute\n\n1. Fork it and create your feature branch: `git checkout -b my-new-feature`\n2. Commit your changes: `git commit -am \"Add some feature\"`\n3. Push to the branch: `git push origin my-new-feature`\n4. Submit a pull request\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fcompare-obj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiaanduplessis%2Fcompare-obj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fcompare-obj/lists"}