{"id":16798814,"url":"https://github.com/simonguo/object-flaser","last_synced_at":"2025-07-15T02:32:07.651Z","repository":{"id":57312601,"uuid":"146286312","full_name":"simonguo/object-flaser","owner":"simonguo","description":"A structured object into a flat object","archived":false,"fork":false,"pushed_at":"2018-08-31T05:47:16.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-14T11:16:23.231Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonguo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-27T11:09:33.000Z","updated_at":"2020-11-03T20:57:14.000Z","dependencies_parsed_at":"2022-09-06T21:22:11.499Z","dependency_job_id":null,"html_url":"https://github.com/simonguo/object-flaser","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/simonguo%2Fobject-flaser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fobject-flaser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fobject-flaser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fobject-flaser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonguo","download_url":"https://codeload.github.com/simonguo/object-flaser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226012216,"owners_count":17559642,"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-13T09:26:59.293Z","updated_at":"2024-11-23T06:41:20.641Z","avatar_url":"https://github.com/simonguo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# object-flaser\n\nA structured object into a flat object.\n\n[![NPM version](https://img.shields.io/npm/v/object-flaser.svg?style=flat)](https://npmjs.org/package/object-flaser)\n[![Build Status](https://img.shields.io/travis/simonguo/object-flaser.svg?style=flat)](https://travis-ci.org/simonguo/object-flaser)\n\n## Installation\n\n```bash\nnpm install object-flaser\n```\n\n## Methods\n\n- **flaser(target: Object, split?: string = '.')**\n\n```js\nimport { flaser } from 'object-flaser';\n\nconst data = {\n  user: {\n    userGroup: {\n      id: 1\n    },\n    name: {\n      first: 'foo',\n      last: 'bar'\n    }\n  }\n};\n\nflaser(data);\n```\n\nReturn:\n\n```js\n{\n  \"user.userGroup.id\": 1,\n  \"user.name.first\": \"foo\",\n  \"user.name.last\": \"bar\"\n}\n```\n\n- **parse(target: Object, split?: string = '.')**\n\n```js\nimport { parse } from 'object-flaser';\n\nconst data = {\n  'user.userGroup.id': 1,\n  'user.name.first': 'foo',\n  'user.name.last': 'bar'\n};\n\nparse(data);\n```\n\nReturn:\n\n```js\n{\n  user: {\n    userGroup: {\n      id: 1\n    },\n    name: {\n      first: \"foo\",\n      last: \"bar\"\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonguo%2Fobject-flaser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonguo%2Fobject-flaser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonguo%2Fobject-flaser/lists"}