{"id":21088154,"url":"https://github.com/rocktimsaikia/flatify-obj","last_synced_at":"2025-07-20T01:33:10.302Z","repository":{"id":57238027,"uuid":"301378207","full_name":"rocktimsaikia/flatify-obj","owner":"rocktimsaikia","description":"Flatten nested javascript objects into a single-depth object.","archived":false,"fork":false,"pushed_at":"2020-10-17T13:50:44.000Z","size":17,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T08:58:28.344Z","etag":null,"topics":["flat-objects","flattened-objects","npm-package","objects"],"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/rocktimsaikia.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":"2020-10-05T11:00:23.000Z","updated_at":"2022-09-13T13:06:41.000Z","dependencies_parsed_at":"2022-08-26T14:04:22.627Z","dependency_job_id":null,"html_url":"https://github.com/rocktimsaikia/flatify-obj","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/rocktimsaikia/flatify-obj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocktimsaikia%2Fflatify-obj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocktimsaikia%2Fflatify-obj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocktimsaikia%2Fflatify-obj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocktimsaikia%2Fflatify-obj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rocktimsaikia","download_url":"https://codeload.github.com/rocktimsaikia/flatify-obj/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocktimsaikia%2Fflatify-obj/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266053832,"owners_count":23869497,"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":["flat-objects","flattened-objects","npm-package","objects"],"created_at":"2024-11-19T21:15:52.971Z","updated_at":"2025-07-20T01:33:10.270Z","avatar_url":"https://github.com/rocktimsaikia.png","language":"JavaScript","readme":"# flatify-obj ![build](https://travis-ci.com/RocktimSaikia/flatify-obj.svg?branch=master) \n\u003e Flatten nested javascript objects into a single-depth object.\n\n## Install\n```bash\n$ npm install flatify-obj\n```\n\n## Usage\n\n ```js\n    const flatifyObject = require('flatify-obj');\n\n    flatifyObject({foo: {bar: {unicorn: '🦄'}}})\n    //=\u003e { 'foo.bar.unicorn': '🦄' }\n\n    flatifyObject({foo: {unicorn: '🦄'}, bar: 'unicorn'}, {onlyLeaves: true});\n    //=\u003e {unicorn: '🦄', bar: 'unicorn'}\n ```\n\n## API\n\n### flatifyObject(object, options?)\n\n#### object\n\nType: `object`\u003cbr\u003e\nObject to flatten\n\n\n#### options\n\n##### onlyLeaves\n\nType: `boolean`\u003cbr\u003e\nDefault: `false`\n\nRemoves the parent property and only returns the leaf nodes of the object\n\n\n## License\n\nMIT © [Rocktim Saikia](https://rocktim.xyz/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocktimsaikia%2Fflatify-obj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frocktimsaikia%2Fflatify-obj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocktimsaikia%2Fflatify-obj/lists"}