{"id":21019085,"url":"https://github.com/tmobile/node-red-contrib-differences","last_synced_at":"2025-05-15T06:32:00.881Z","repository":{"id":42266933,"uuid":"267387013","full_name":"tmobile/node-red-contrib-differences","owner":"tmobile","description":"A Node-RED node to detect differences between two sets of data","archived":false,"fork":false,"pushed_at":"2023-01-24T02:44:57.000Z","size":456,"stargazers_count":2,"open_issues_count":5,"forks_count":2,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-28T14:07:21.446Z","etag":null,"topics":["node-red","node-red-contrib"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmobile.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":"2020-05-27T17:43:42.000Z","updated_at":"2023-07-25T02:30:14.000Z","dependencies_parsed_at":"2023-01-31T16:00:36.747Z","dependency_job_id":null,"html_url":"https://github.com/tmobile/node-red-contrib-differences","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmobile%2Fnode-red-contrib-differences","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmobile%2Fnode-red-contrib-differences/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmobile%2Fnode-red-contrib-differences/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmobile%2Fnode-red-contrib-differences/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmobile","download_url":"https://codeload.github.com/tmobile/node-red-contrib-differences/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254288351,"owners_count":22045883,"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":["node-red","node-red-contrib"],"created_at":"2024-11-19T10:29:00.727Z","updated_at":"2025-05-15T06:31:58.537Z","avatar_url":"https://github.com/tmobile.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-red-contrib-differences\n\n[![Travis (.com) branch](https://img.shields.io/travis/com/tmobile/node-red-contrib-differences/main?style=flat-square)](https://travis-ci.com/tmobile/node-red-contrib-differences) ![GitHub package.json version](https://img.shields.io/github/package-json/v/tmobile/node-red-contrib-differences?style=flat-square) [![npm (scoped)](https://img.shields.io/npm/v/@tmus/node-red-contrib-differences?style=flat-square)](https://www.npmjs.com/package/@tmus/node-red-contrib-differences)\n\nThis Node-RED node will compare two inputs, then create output based on how the inputs differ.\n\nOutput functions include:\n\n* **Complement**: What's in one input, but not the other\n* **Intersection**: What's common in both inputs\n* **Union**: Everything from both inputs\n\n## Usage\n\nDrag and Drop the \"Differences\" node onto the canvas. Set the `Left` and `Right` input values to the source sets, set the `Function` value baed on how you want differences between the left and right sets treated, and the `Output` value to the destination property.\n\n## Examples\n\nSee also [example-flow.json](example-flow.json).\n\n### Complement\n\nInput as an array:\n\n```javascript\n// \"Left\" (desired)\n[ \"gadget\", \"gizmo\", \"thingamabob\" ]\n\n// \"Right\" (owned)\n[ \"widget\", \"gadget\" ]\n\n// Output:\n[ \"gizmo\", \"thingamabob\" ]\n```\n\nInput as an object: \n\n```javascript\n// \"Left\" (desired)\n{ gadgets: 2, gizmos: 3, thingamabobs: 4, whatchamacallits: 3 }\n\n// \"Right (owned)\n{ widgets: 1, gadgets: 2, whatchamacallits: 2 }\n\n// Output:\n{ gizmos: 3, thingamabobs: 4, whatchamacallits: 3 }\n```\n\n### Intersection\n\nInput as an array:\n\n```javascript\n// \"Left\"\n[ \"widget\", \"gadget\" ]\n\n// \"Right\"\n[ \"gadget\", \"gizmo\", \"thingamabob\" ]\n\n// Output:\n[ \"gadget\" ]\n```\n\nInput as an object: \n\n```javascript\n// \"Left\"\n{ widgets: 1, gadgets: 2, whatchamacallits: 2 }\n\n// \"Right\"\n{ gadgets: 2, gizmos: 3, thingamabobs: 4, whatchamacallits: 3 }\n\n// Output:\n{ gadgets: 2 }\n```\n\n### Union\n\nInput as an array:\n\n```javascript\n// \"Left\"\n[ \"widget\", \"gadget\" ]\n\n// \"Right\"\n[ \"gadget\", \"gizmo\", \"thingamabob\" ]\n\n// Output:\n[ \"gadget\", \"widget\", \"gizmo\", \"thingamabob\" ]\n```\n\nInput as an object: \n\n```javascript\n// \"Left\"\n{ widgets: 1, gadgets: 2, whatchamacallits: 2 }\n\n// \"Right\"\n{ gadgets: 2, gizmos: 3, thingamabobs: 4, whatchamacallits: 3 }\n\n// Output:\n{ widgets: 1, gadgets: 2, gizmos: 3, thingamabobs: 4, whatchamacallits: [2, 3] }\n```\n\n## Contribute Quick Start\n\nFork this repository, then:\n\n```\ngit clone https://github.com/tmobile/node-red-contrib-differences.git\ncd node-red-contrib-differences\nnpm run build\ncd ~/.node-red\nnpm install \u003cpath to cloned repository\u003e --save\nnode-red\n```\n\nWhen you're finished with your changes, merge requests are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmobile%2Fnode-red-contrib-differences","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmobile%2Fnode-red-contrib-differences","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmobile%2Fnode-red-contrib-differences/lists"}