{"id":20426006,"url":"https://github.com/seleb/bitsy-merge","last_synced_at":"2025-10-08T14:02:01.595Z","repository":{"id":35127254,"uuid":"186079795","full_name":"seleb/bitsy-merge","owner":"seleb","description":"merge tool for bitsy gamedata","archived":false,"fork":false,"pushed_at":"2024-09-24T17:25:10.000Z","size":572,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-04T00:51:59.635Z","etag":null,"topics":["bitsy","merge"],"latest_commit_sha":null,"homepage":"https://seansleblanc.itch.io/bitsy-merge","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/seleb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-05-11T02:45:58.000Z","updated_at":"2024-07-28T18:58:39.000Z","dependencies_parsed_at":"2024-06-17T15:52:44.020Z","dependency_job_id":null,"html_url":"https://github.com/seleb/bitsy-merge","commit_stats":{"total_commits":75,"total_committers":3,"mean_commits":25.0,"dds":"0.19999999999999996","last_synced_commit":"4dc336805d3d3acd59f14e16382ccc96534b0c6d"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seleb%2Fbitsy-merge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seleb%2Fbitsy-merge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seleb%2Fbitsy-merge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seleb%2Fbitsy-merge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seleb","download_url":"https://codeload.github.com/seleb/bitsy-merge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224742382,"owners_count":17362232,"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":["bitsy","merge"],"created_at":"2024-11-15T07:14:56.342Z","updated_at":"2025-10-08T14:02:01.503Z","avatar_url":"https://github.com/seleb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @bitsy/merge\n\nmerge tool for bitsy gamedata\n\nnotes:\n\n- contents which don't overlap will be added without being changed\n- contents which overlap will have their ids prefixed before being added, and references to their id will automatically be updated\n- contents which overlap but are identical will not be added (e.g. if you start from a shared file, only changes will be added on merge)\n- the contents of dialog scripts are not checked or updated; if you're referencing things from dialog (especially via hacks) you'll have to make sure that the names still line up post-merge manually\n- variables which overlap will throw an error (variable overlaps need to be resolved manually since dialog contents aren't updated)\n- title, bitsy version, and room format from game to add is ignored\n- make sure to choose a unique prefix: overlaps are not checked for prefixed conflict resolution\n\n## How To\n\n### Browser\n\n1. include `./dist/index.iife.js` in HTML\n\n```html\n\u003cscript src=\"vendor/@bitsy/merge/dist/index.iife.js\"\u003e\u003c/script\u003e\n```\n\n2. reference global\n\n```js\nconst { merge } = window.bitsyMerge;\n```\n\n### Node\n\n1. install\n\n```sh\nnpm install @bitsy/merge --save\n```\n\n2. import\n\n```js\nconst { merge } = require(\"@bitsy/merge\");\n```\n\n```js\nimport { merge } from '@bitsy/merge';\n```\n\n### Use\n\n```js\nconst baseGamedata = `Write your game's title here\n\n# BITSY VERSION 6.0...`;\nconst addGamedata = `Write your game's title here\n\n# BITSY VERSION 6.0...`;\nconst prefix = 'added_';\n\nconst mergedGamedata = merge(baseGamedata, addGamedata, prefix).gamedata;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseleb%2Fbitsy-merge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseleb%2Fbitsy-merge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseleb%2Fbitsy-merge/lists"}