{"id":17528656,"url":"https://github.com/jucian0/object-path","last_synced_at":"2025-03-29T01:21:51.487Z","repository":{"id":107688535,"uuid":"378000135","full_name":"jucian0/object-path","owner":"jucian0","description":"An immutable implementation of dot-prop.","archived":false,"fork":false,"pushed_at":"2021-06-21T12:34:18.000Z","size":389,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-03T11:22:03.269Z","etag":null,"topics":["imutability","javascript","tdd-javascript"],"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/jucian0.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}},"created_at":"2021-06-18T01:16:48.000Z","updated_at":"2021-06-22T01:17:10.000Z","dependencies_parsed_at":"2023-03-12T20:01:03.623Z","dependency_job_id":null,"html_url":"https://github.com/jucian0/object-path","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/jucian0%2Fobject-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jucian0%2Fobject-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jucian0%2Fobject-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jucian0%2Fobject-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jucian0","download_url":"https://codeload.github.com/jucian0/object-path/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246122964,"owners_count":20726919,"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":["imutability","javascript","tdd-javascript"],"created_at":"2024-10-20T15:44:29.392Z","updated_at":"2025-03-29T01:21:51.469Z","avatar_url":"https://github.com/jucian0.png","language":"JavaScript","readme":"# Object Path - TDD implementation\n\n## An immutable implementation of dot-prop\n\n![tests](tests.png)\n\n## Get, set, or delete a property from a nested object using a dot path\n\nget(object, path, defaultValue?)\nGet the value of the property at the given path.\n\nReturns a value if any.\n\n```javascript\nconst obj = {\n  property: {\n    test: \"A\",\n  },\n};\n\nconst result = get(obj, \"property\");\n```\n\n## Set the property at the given path to the given value.\n\nset(object, path, value)\n\nReturns a object.\n\n```javascript\nconst obj = {\n  property: {\n    test: \"A\",\n  },\n};\n\nconst result = set(obj, \"property\", \"B\");\n```\n\n## Delete the property at the given path.\n\ndelete(object, path)\n\nReturns a object without the property deleted.\n\n```javascript\nconst obj = {\n  property: {\n    test: \"A\",\n  },\n};\n\nconst result = del(obj, \"property.test\");\n```\n\n## Merge the property that has an array or an object.\n\nmerge(object, path)\n\nReturns a object with the property and value passed by argument merged.\n\n```javascript\nconst obj = {\n  property: {\n    test: [1, 2],\n  },\n};\n\nconst result = merge(obj, \"property.test\", [3, 4]);\n```\n\n## Run Tests\n\n```bash\nyarn test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjucian0%2Fobject-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjucian0%2Fobject-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjucian0%2Fobject-path/lists"}