{"id":19513028,"url":"https://github.com/invrs/camel-dot-prop-immutable","last_synced_at":"2026-07-16T04:32:08.842Z","repository":{"id":57193292,"uuid":"117929131","full_name":"invrs/camel-dot-prop-immutable","owner":"invrs","description":"dot-prop-immutable w/ fuzzy matching","archived":false,"fork":false,"pushed_at":"2018-05-01T02:06:57.000Z","size":295,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-08T12:25:48.212Z","etag":null,"topics":["immutable","merge","object"],"latest_commit_sha":null,"homepage":"","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/invrs.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}},"created_at":"2018-01-18T03:49:48.000Z","updated_at":"2018-05-01T02:06:58.000Z","dependencies_parsed_at":"2022-09-01T03:40:23.648Z","dependency_job_id":null,"html_url":"https://github.com/invrs/camel-dot-prop-immutable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invrs%2Fcamel-dot-prop-immutable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invrs%2Fcamel-dot-prop-immutable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invrs%2Fcamel-dot-prop-immutable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invrs%2Fcamel-dot-prop-immutable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/invrs","download_url":"https://codeload.github.com/invrs/camel-dot-prop-immutable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240762302,"owners_count":19853455,"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":["immutable","merge","object"],"created_at":"2024-11-10T23:28:31.758Z","updated_at":"2025-10-18T07:37:28.730Z","avatar_url":"https://github.com/invrs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# camel-dot-prop-immutable\n\nThis extension to [dot-prop-immutable](/debitoor/dot-prop-immutable) adds fuzzy matching.\n\n| Props          | Matches                      | Type             |\n| -------------- | ---------------------------- | ---------------- |\n| `foo.bar.buzz` | `{ foo: { bar: { buzz } } }` | Default behavior |\n| `foo.bar.buzz` | `{ foo: { barBuzz } }`       | Collapse right   |\n| `foo.bar.buzz` | `{ fooBar: { buzz } }`       | Collapse left    |\n\n### Example\n\n```js\nimport dot from \"camel-dot-prop-immutable\"\n\ndot.get(\n  { foo: { bar: { buzz: \"unicorn\" } } },\n  \"foo.bar.buzz\"\n)\n//=\u003e 'unicorn'\n\ndot.get({ fooBar: { buzz: \"unicorn\" } }, \"foo.bar.buzz\")\n//=\u003e 'unicorn'\n\ndot.get({ foo: { barBuzz: \"unicorn\" } }, \"foo.bar.buzz\")\n//=\u003e 'unicorn'\n\ndot.get({ fooBarBuzz: \"unicorn\" }, \"foo.bar.buzz\")\n//=\u003e 'unicorn'\n```\n\n## Restrictions\n\nOnly collapse from left or right. Middle collapses like this will not work:\n\n```js\ndot.get({ foo: { barBuzz: { bang: \"unicorn\" } }, \"foo.bar.buzz.bang\")\n//=\u003e 'unicorn'\n```\n\nBut these do:\n\n```js\ndot.get({ fooBar: { buzz: { bang: \"unicorn\" } }, \"foo.bar.buzz.bang\")\n//=\u003e 'unicorn'\n\ndot.get({ foo: { bar: { buzzBang: \"unicorn\" } }, \"foo.bar.buzz.bang\")\n//=\u003e 'unicorn'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvrs%2Fcamel-dot-prop-immutable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvrs%2Fcamel-dot-prop-immutable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvrs%2Fcamel-dot-prop-immutable/lists"}