{"id":26757026,"url":"https://github.com/luisfuentech/object-dot-parser","last_synced_at":"2026-04-17T07:31:40.925Z","repository":{"id":46634768,"uuid":"401151459","full_name":"LuisFuenTech/object-dot-parser","owner":"LuisFuenTech","description":"Parse string dotted keys to nested attributes in object","archived":false,"fork":false,"pushed_at":"2021-10-02T22:10:31.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-09T13:14:17.810Z","etag":null,"topics":["hacktoberfest","json","nodejs","npm","npm-package","parser"],"latest_commit_sha":null,"homepage":"","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/LuisFuenTech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2021-08-29T22:05:36.000Z","updated_at":"2021-10-02T22:10:13.000Z","dependencies_parsed_at":"2022-09-06T21:21:05.378Z","dependency_job_id":null,"html_url":"https://github.com/LuisFuenTech/object-dot-parser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisFuenTech%2Fobject-dot-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisFuenTech%2Fobject-dot-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisFuenTech%2Fobject-dot-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuisFuenTech%2Fobject-dot-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuisFuenTech","download_url":"https://codeload.github.com/LuisFuenTech/object-dot-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246054680,"owners_count":20716411,"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":["hacktoberfest","json","nodejs","npm","npm-package","parser"],"created_at":"2025-03-28T15:34:24.509Z","updated_at":"2026-04-17T07:31:40.843Z","avatar_url":"https://github.com/LuisFuenTech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Object Dot Parser\n\nThis module allows you to parse objects whose attributes are strings with points, and converts them into nested objects.\n\n\u003ca href=\"https://nodei.co/npm/object-dot-parser\"\u003e\n  \u003cimg src=\"https://nodei.co/npm/object-dot-parser.png?downloads=true\"\u003e\n\u003c/a\u003e\n\n[![npm version](https://img.shields.io/npm/v/object-dot-parser.svg?style=flat-square)](https://badge.fury.io/js/object-dot-parser)\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/LuisFuenTech/object-dot-parser/blob/master/LICENSE)\n[![NodeJS](https://img.shields.io/badge/node-10.x.x-brightgreen?style=flat-square)](https://github.com/LuisFuenTech/object-dot-parser/blob/master/package.json)\n[![install size](https://packagephobia.now.sh/badge?p=object-dot-parser)](https://packagephobia.now.sh/result?p=object-dot-parser)\n[![npm downloads](https://img.shields.io/npm/dm/object-dot-parser.svg?style=flat-square)](http://npm-stat.com/charts.html?package=object-dot-parser)\n\n# Compatibility\n\nThe minimum supported version of Node.js is v10.\n\n# Usage\n\n## Installation\n\n```bash\n$ npm i object-dot-parser\n```\n\n## Test\n\nRun from the root folder:\n\n```bash\n$ npm run test\n```\n\n## Importing\n\n```js\nconst objectDotParser = require('object-dot-parser');\n```\n\n## Example\n\n```js\nconst objectDotParser = require('object-dot-parser');\n\nconst person = {\n  'person.name': 'Luis',\n  'person.age': 74,\n  'person.address.city': 'Atlanta',\n  'person.address.street.name': 'St. Joseph',\n  'person.address.street.number': '#34-46',\n  'person.position': 'Software Engineer',\n  'social.instagram': 'luisfuentech',\n  'social.twitter': 'luisfuentech',\n  'social.github': 'luisfuentech',\n};\n\nconsole.log(JSON.stringify(objectDotParser(person), null, 2));\n```\n\nOutput\n\n```bash\n{\n  \"person\": {\n    \"name\": \"Luis\",\n    \"age\": 74,\n    \"address\": {\n      \"city\": \"Atlanta\",\n      \"street\": {\n        \"name\": \"St. Joseph\",\n        \"number\": \"#34-46\"\n      }\n    },\n    \"position\": \"Software Engineer\"\n  },\n  \"social\": {\n    \"instagram\": \"luisfuentech\",\n    \"twitter\": \"luisfuentech\",\n    \"github\": \"luisfuentech\"\n  }\n}\n```\n\n# Contributing\nIf you want to add something or fix it, please follow [this guide](https://github.com/LuisFuenTech/object-dot-parser/blob/master/CONTRIBUTING.md)\n\n# License\n\n[MIT](https://github.com/LuisFuenTech/object-dot-parser/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisfuentech%2Fobject-dot-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluisfuentech%2Fobject-dot-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisfuentech%2Fobject-dot-parser/lists"}