{"id":24030505,"url":"https://github.com/callmecavs/dotnot","last_synced_at":"2025-04-19T11:41:41.234Z","repository":{"id":57215497,"uuid":"122513881","full_name":"callmecavs/dotnot","owner":"callmecavs","description":"Access object properties using dot notation.","archived":false,"fork":false,"pushed_at":"2018-02-24T21:18:21.000Z","size":43,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T05:17:13.075Z","etag":null,"topics":["dot-notation","object"],"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/callmecavs.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":"2018-02-22T17:49:25.000Z","updated_at":"2023-03-08T04:59:12.000Z","dependencies_parsed_at":"2022-08-24T21:11:25.221Z","dependency_job_id":null,"html_url":"https://github.com/callmecavs/dotnot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmecavs%2Fdotnot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmecavs%2Fdotnot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmecavs%2Fdotnot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/callmecavs%2Fdotnot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/callmecavs","download_url":"https://codeload.github.com/callmecavs/dotnot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249685295,"owners_count":21310577,"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":["dot-notation","object"],"created_at":"2025-01-08T17:44:36.325Z","updated_at":"2025-04-19T11:41:41.217Z","avatar_url":"https://github.com/callmecavs.png","language":"JavaScript","readme":"# dotnot\n\n[![dotnot on Travis](https://img.shields.io/travis/callmecavs/dotnot.svg?style=flat-square)](https://travis-ci.org/callmecavs/dotnot) [![dotnot on NPM](https://img.shields.io/npm/v/dotnot.svg?style=flat-square)](https://www.npmjs.com/package/dotnot) [![dotnot Downloads on NPM](https://img.shields.io/npm/dm/dotnot.svg?style=flat-square)](https://www.npmjs.com/package/dotnot) [![Standard JavaScript Style](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com/)\n\nAccess object properties using dot notation.\n\n### Install\n\n```sh\n$ npm install dotnot --save\n```\n\n### Use\n\n```javascript\nimport {\n  get,\n  set\n} from 'dotnot'\n\nconst data = {\n  a: {\n    b: {\n      c: {\n        d: 1\n      }\n    }\n  },\n  e: 1\n}\n\n// get (object, path) -\u003e value\nget(data, 'a.b')             // returns { c: { d: 1 } }\nget(data, 'a.b.c')           // returns { d: 1 }\nget(data, 'a.b.c.d')         // returns 1\nget(data, 'a.c')             // returns undefined\nget(data, 'a.b.d')           // returns undefined\nget(data, 'a.b.c.e')         // returns undefined\n\n// set (object, path, value) -\u003e value\nset(data, 'a.c', 1)             // returns 1\nset(data, 'a.b.d', 1)           // returns 1\nset(data, 'a.b.c.e', 1)         // returns 1\n```\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT). © 2018 Michael Cavalea\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallmecavs%2Fdotnot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcallmecavs%2Fdotnot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcallmecavs%2Fdotnot/lists"}