{"id":16731432,"url":"https://github.com/skratchdot/object-path-get","last_synced_at":"2025-03-21T21:31:16.861Z","repository":{"id":37678032,"uuid":"24072814","full_name":"skratchdot/object-path-get","owner":"skratchdot","description":"get values from javascript objects by specifying a path","archived":false,"fork":false,"pushed_at":"2023-01-06T01:32:18.000Z","size":1650,"stargazers_count":4,"open_issues_count":20,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T08:33:08.741Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skratchdot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-15T20:33:10.000Z","updated_at":"2023-08-03T16:50:08.000Z","dependencies_parsed_at":"2023-02-05T01:32:34.209Z","dependency_job_id":null,"html_url":"https://github.com/skratchdot/object-path-get","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fobject-path-get","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fobject-path-get/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fobject-path-get/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fobject-path-get/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skratchdot","download_url":"https://codeload.github.com/skratchdot/object-path-get/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244160458,"owners_count":20408104,"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-10-12T23:37:12.496Z","updated_at":"2025-03-21T21:31:16.392Z","avatar_url":"https://github.com/skratchdot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# object-path-get\n\n[![NPM version](https://badge.fury.io/js/object-path-get.svg)](http://badge.fury.io/js/object-path-get)\n[![Build Status](https://travis-ci.org/skratchdot/object-path-get.png?branch=master)](https://travis-ci.org/skratchdot/object-path-get)\n[![Code Climate](https://codeclimate.com/github/skratchdot/object-path-get.png)](https://codeclimate.com/github/skratchdot/object-path-get)\n[![Coverage Status](https://coveralls.io/repos/skratchdot/object-path-get/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/skratchdot/object-path-get?branch=master)\n[![Dependency Status](https://david-dm.org/skratchdot/object-path-get.svg)](https://david-dm.org/skratchdot/object-path-get)\n[![devDependency Status](https://david-dm.org/skratchdot/object-path-get/dev-status.svg)](https://david-dm.org/skratchdot/object-path-get#info=devDependencies)\n\n[![NPM](https://nodei.co/npm/object-path-get.png)](https://npmjs.org/package/object-path-get)\n\n## Description\n\nget values from javascript objects by specifying a path.\n\nby using this library, you can help prevent the following error from occurring:\n\n```\nCannot read property 'foo' of undefined\n```\n\nNOTE: I've re-written / used this function so many different times, I decided to publish it\nas a module.\n\n## Getting Started\n\nInstall the module with: `npm install --save object-path-get`\n\n```javascript\nvar getPath = require('object-path-get');\nvar obj = { foo: { bar: 'baz' } };\ngetPath(obj, 'foo.bar'); // result: \"baz\"\ngetPath(obj, 'foo.invalidKey', 'cool'); // result: \"cool\"\ngetPath(obj, 'foo|bar', null, '|'); // result: \"baz\" (with different delimiter)\ngetPath(obj, ['foo', 'bar']); // result \"baz\" (with array path)\n```\n\n## Links\n\n- [Source Code](https://github.com/skratchdot/object-path-get)\n- [Changelog](https://github.com/skratchdot/object-path-get/blob/master/CHANGELOG.md)\n- [Live example on Runkit](https://npm.runkit.com/object-path-get)\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\n\u003c!-- prettier-ignore --\u003e\n| [\u003cimg src=\"https://avatars1.githubusercontent.com/u/434470?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003e◬\u003c/b\u003e\u003c/sub\u003e](https://www.skratchdot.com/)\u003cbr /\u003e[💻](https://github.com/skratchdot/object-path-get/commits?author=skratchdot \"Code\") [📖](https://github.com/skratchdot/object-path-get/commits?author=skratchdot \"Documentation\") [💡](#example-skratchdot \"Examples\") | [\u003cimg src=\"https://avatars0.githubusercontent.com/u/7457?v=4\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003edanigb\u003c/b\u003e\u003c/sub\u003e](https://github.com/danigb)\u003cbr /\u003e[💻](https://github.com/skratchdot/object-path-get/commits?author=danigb \"Code\") |\n| :---: | :---: |\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!\n\n## License\n\nCopyright (c) 2014 skratchdot  \nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskratchdot%2Fobject-path-get","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskratchdot%2Fobject-path-get","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskratchdot%2Fobject-path-get/lists"}