{"id":18358843,"url":"https://github.com/uppercod/get-prop","last_synced_at":"2025-04-10T03:04:14.696Z","repository":{"id":113251110,"uuid":"288271395","full_name":"UpperCod/get-prop","owner":"UpperCod","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-18T04:21:50.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T06:43:11.770Z","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/UpperCod.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":"2020-08-17T19:42:47.000Z","updated_at":"2020-09-18T04:21:52.000Z","dependencies_parsed_at":"2023-07-21T21:31:20.505Z","dependency_job_id":null,"html_url":"https://github.com/UpperCod/get-prop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"UpperCod/pkg-base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fget-prop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fget-prop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fget-prop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fget-prop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UpperCod","download_url":"https://codeload.github.com/UpperCod/get-prop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248148228,"owners_count":21055547,"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-11-05T22:19:43.575Z","updated_at":"2025-04-10T03:04:14.649Z","avatar_url":"https://github.com/UpperCod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-prop\n\nObtains the value of an object or array, according to a string or array type map.\n\n## install\n\n```\nnpm install @uppercod/get-prop\n```\n\n### usage\n\n```js\nimport getProp from \"@uppercod/get-prop\";\n\nconst data = {\n    a: {\n        b: {\n            c: {\n                d: \"d\",\n            },\n        },\n    },\n};\n\ngetProp(data, \"a.b.c.d\"); // d\ngetProp(data, \"f\", \"...\"); //...\n```\n\n### Selector Map Syntax\n\n1. `a.b.c` equivalent to selector `data.a.b.c`.\n2. `a.b[1]` equivalent to selector `data.a.b[1]`.\n3. `a/b/c` equivalent to selector `data.a.b.c`.\n4. `[\"a\",\"b\",\"c\"]` equivalent to selector `data.a.b.c`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fget-prop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuppercod%2Fget-prop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fget-prop/lists"}