{"id":16193466,"url":"https://github.com/pyramation/package-merge","last_synced_at":"2025-04-07T15:18:38.009Z","repository":{"id":66351106,"uuid":"284149382","full_name":"pyramation/package-merge","owner":"pyramation","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-31T23:46:39.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T02:03:52.543Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyramation.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":"2020-07-31T23:37:04.000Z","updated_at":"2020-07-31T23:46:41.000Z","dependencies_parsed_at":"2023-02-26T23:47:13.216Z","dependency_job_id":null,"html_url":"https://github.com/pyramation/package-merge","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"31a9c3f4f52bb9999f293fc2b9ed0a5a8cef15b3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fpackage-merge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fpackage-merge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fpackage-merge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fpackage-merge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyramation","download_url":"https://codeload.github.com/pyramation/package-merge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675598,"owners_count":20977378,"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-10-10T08:14:57.239Z","updated_at":"2025-04-07T15:18:37.974Z","avatar_url":"https://github.com/pyramation.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# package-merge\n\nNOTE: this is originally the source code from `package-merge`, but it was missing deps so I had to re-package it. \n\nIntelligently merge `package.json` files.\n\nThis is pretty much built for yeoman. It attempts to combine two separate `package.json` files into one, respecting as much existing content as possible including already existing dependencies and `package.json` formatting.\n\n```javascript\nvar merge = require('package-merge');\nvar dst = fs.readFileSync('package.a.json');\nvar src = fs.readFileSync('package.b.json');\n\n// Create a new `package.json`\nconsole.log(merge(dst, src));\n```\n\nIt allows you to do things like define scripts or dependencies that you would like to include as part of a larger project.\n\nMerging:\n\n```json\n{\n        \"name\": \"my-package\",\n        \"dependencies\": {\n                \"babel\": \"^5.2.2\",\n                \"lodash\": \"^3.2.5\"\n        }\n}\n```\n\n```json\n{\n        \"dependencies\": {\n                \"babel\": \"^5.4.1\",\n                \"eslint\": \"^0.22.1\"\n        }\n}\n```\n\nresults in:\n\n```json\n{\n        \"name\": \"my-package\",\n        \"dependencies\": {\n                \"babel\": \"^5.4.1\",\n                \"lodash\": \"^3.2.5\",\n                \"eslint\": \"^0.22.1\"\n        }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyramation%2Fpackage-merge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyramation%2Fpackage-merge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyramation%2Fpackage-merge/lists"}