{"id":20671121,"url":"https://github.com/allnulled/simple-getter","last_synced_at":"2025-03-10T17:22:14.316Z","repository":{"id":57360191,"uuid":"115273701","full_name":"allnulled/simple-getter","owner":"allnulled","description":"A tool to access (nested) array items and object properties through array/string-based selectors.","archived":false,"fork":false,"pushed_at":"2018-03-24T17:11:21.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T22:50:47.564Z","etag":null,"topics":[],"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/allnulled.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":"2017-12-24T16:02:38.000Z","updated_at":"2018-03-24T17:11:22.000Z","dependencies_parsed_at":"2022-09-06T22:22:25.117Z","dependency_job_id":null,"html_url":"https://github.com/allnulled/simple-getter","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/allnulled%2Fsimple-getter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fsimple-getter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fsimple-getter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fsimple-getter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allnulled","download_url":"https://codeload.github.com/allnulled/simple-getter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242889601,"owners_count":20201989,"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-16T20:25:16.100Z","updated_at":"2025-03-10T17:22:14.295Z","avatar_url":"https://github.com/allnulled.png","language":"JavaScript","readme":"# simple-getter\n\n## 1. About\n\nThe simple-getter utility (for JavaScript) is just a tool to access objects and arrays nested contents through arrays of values used as *selectors*.\n\n## 1. Installation\n\nImport the file at:\n\n    src/simple-getter.js\n\nIt should work for both, NodeJS and browser environments.\n\n## 2. Usage\n\nYou can use this utility like: \n\n    SimpleGetter(data, selector)\n\nSo for example, once it's loaded, this code should return ```true```:\n\n    SimpleGetter(\n        [0, {a: {b: [0, \"foo\"]}}, 2],\n        [1, \"a\", \"b\", 1]\n    ) === \"foo\";\n\nYou can test it even in the console of your favourite browser, if you want.\n\n\n## 3. Why?\n\nThis utility exists in other libraries, like ```lodash``` or ```underscore```, but with this snippet, you can be sure that you don't depend on anything else for this functionality, which I find very important, as it can help you to solve problems that, otherwise, should require more effort.\n\nIts purpose was to be a completely **minimalistic** approach too. \n\nIt doesn't handle errors, but it's up to you to add 3 more lines and handle them in your preferred way.\n\n\n## 3. License\n\nIt is ok.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallnulled%2Fsimple-getter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallnulled%2Fsimple-getter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallnulled%2Fsimple-getter/lists"}