{"id":18082840,"url":"https://github.com/ranfdev/deepobj","last_synced_at":"2025-07-24T12:36:02.158Z","repository":{"id":104101101,"uuid":"127904162","full_name":"ranfdev/deepobj","owner":"ranfdev","description":"get, set, delete deep objects in javascript. Get the last object reference (~130 bytes)","archived":false,"fork":false,"pushed_at":"2018-04-03T12:32:11.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T11:54:12.273Z","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/ranfdev.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":"2018-04-03T12:23:18.000Z","updated_at":"2018-04-03T12:32:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0d06432-b27d-4e6b-afd0-64a6dfa1d5e2","html_url":"https://github.com/ranfdev/deepobj","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ranfdev/deepobj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranfdev%2Fdeepobj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranfdev%2Fdeepobj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranfdev%2Fdeepobj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranfdev%2Fdeepobj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ranfdev","download_url":"https://codeload.github.com/ranfdev/deepobj/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranfdev%2Fdeepobj/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266844281,"owners_count":23993965,"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-07-24T02:00:09.469Z","response_time":99,"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":"2024-10-31T14:06:11.587Z","updated_at":"2025-07-24T12:36:02.089Z","avatar_url":"https://github.com/ranfdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deepobj(action, obj, path)\n\nGet, set, delete or do what you want with a deep object (it keeps the object reference).\ninspired from [dlv](https://github.com/developit/dlv) and [dset](https://github.com/lukeed/dset/)\n\n# Install:\n```npm i @ranfdev/deepobj```\n\n## Examples:\n\n```\nimport deepobj from \"@ranfdev/deepobj\"\nconst objectToTest = {a: {b: {c: {d: 2}}}}\n\n\n// define some basic actions\n\nconst get = (obj, prop) =\u003e obj[prop];\nconst set = n =\u003e (obj, prop) =\u003e (obj[prop] = n);\n\n// You can do what you want, even deleting the nested object\nconst del = (obj, prop) =\u003e delete obj[prop];\n\n// use them\ndeepobj(get, objectToTest, 'a.b.c.d') // 2\ndeepobj(set(10), objectToTest, 'e.f.g')\n\nconsole.log(objectToTest.e.f.g) //10\n```\n\n## Why i made this\n\ndlv only returns the value of the nested object. I needed a way to get the reference of the nested object\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franfdev%2Fdeepobj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Franfdev%2Fdeepobj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franfdev%2Fdeepobj/lists"}