{"id":31035960,"url":"https://github.com/webfactory/merge-objects","last_synced_at":"2025-09-14T03:57:24.299Z","repository":{"id":311932388,"uuid":"1045654613","full_name":"webfactory/merge-objects","owner":"webfactory","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-27T14:26:02.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-27T23:34:45.568Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/webfactory.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,"zenodo":null}},"created_at":"2025-08-27T14:10:48.000Z","updated_at":"2025-08-27T14:26:06.000Z","dependencies_parsed_at":"2025-08-27T23:35:19.159Z","dependency_job_id":"ed5bba53-7130-4b7b-ae18-b4ffc461e57a","html_url":"https://github.com/webfactory/merge-objects","commit_stats":null,"previous_names":["webfactory/merge-objects"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/webfactory/merge-objects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fmerge-objects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fmerge-objects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fmerge-objects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fmerge-objects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webfactory","download_url":"https://codeload.github.com/webfactory/merge-objects/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fmerge-objects/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275058575,"owners_count":25398173,"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-09-14T02:00:10.474Z","response_time":75,"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":[],"created_at":"2025-09-14T03:57:22.044Z","updated_at":"2025-09-14T03:57:24.289Z","avatar_url":"https://github.com/webfactory.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mergeObjects Utility\n\nThe `mergeObjects` function is a utility for merging multiple objects into a single object, with an option to perform a deep merge. This function is particularly useful for combining configuration settings, state management, or any scenario where you need to consolidate multiple objects while preserving their properties.\n\n## Installation\n\n```\nnpm install @webfactoryde/merge-objects\n```\n\n## Usage\n\nImport the `mergeObjects` function in your module(s) and pass any number of objects:\n\n```javascript\n// your module\nimport mergeObjects from '@webfactoryde/merge-objects';\n\n// Shallow merge:\nconst obj1 = { a: 1, b: 2 };\nconst obj2 = { b: 3, c: 4 };\nconst result = mergeObjects(obj1, obj2);\nconsole.log(result); // Output: { a: 1, b: 3, c: 4 }\n\n// Deep merge\nconst obj1 = { a: 1, b: { x: 10, y: 20 } };\nconst obj2 = { b: { y: 30, z: 40 }, c: 4 };\nconst result = mergeObjects(true, obj1, obj2);\nconsole.log(result); // Output: { a: 1, b: { x: 10, y: 30, z: 40 }, c: 4 }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfactory%2Fmerge-objects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebfactory%2Fmerge-objects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfactory%2Fmerge-objects/lists"}