{"id":22281843,"url":"https://github.com/quernest/arr-flatten-unflatten","last_synced_at":"2025-08-23T17:43:05.357Z","repository":{"id":34052713,"uuid":"167801917","full_name":"Quernest/arr-flatten-unflatten","owner":"Quernest","description":"🍓 non-recursive method of flattening an array or arrays and unflattening the result","archived":false,"fork":false,"pushed_at":"2023-01-04T02:16:25.000Z","size":735,"stargazers_count":0,"open_issues_count":12,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T16:57:32.893Z","etag":null,"topics":["array","array-flattening","arrays","deflat","flat","flatdeep","flatten","flatten-array","flattendeep","non-recursive","unflat","unflatten"],"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/Quernest.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":"2019-01-27T11:38:38.000Z","updated_at":"2021-01-25T20:45:22.000Z","dependencies_parsed_at":"2023-01-15T04:15:29.476Z","dependency_job_id":null,"html_url":"https://github.com/Quernest/arr-flatten-unflatten","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/Quernest%2Farr-flatten-unflatten","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quernest%2Farr-flatten-unflatten/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quernest%2Farr-flatten-unflatten/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quernest%2Farr-flatten-unflatten/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Quernest","download_url":"https://codeload.github.com/Quernest/arr-flatten-unflatten/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245527515,"owners_count":20630035,"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":["array","array-flattening","arrays","deflat","flat","flatdeep","flatten","flatten-array","flattendeep","non-recursive","unflat","unflatten"],"created_at":"2024-12-03T16:22:44.200Z","updated_at":"2025-03-25T19:23:40.550Z","avatar_url":"https://github.com/Quernest.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# arr-flatten-unflatten\n\n[![package version](https://img.shields.io/npm/v/arr-flatten-unflatten.svg?style=flat-square)](https://npmjs.org/package/arr-flatten-unflatten)\n[![package downloads](https://img.shields.io/npm/dm/arr-flatten-unflatten.svg?style=flat-square)](https://npmjs.org/package/arr-flatten-unflatten)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![package license](https://img.shields.io/npm/l/arr-flatten-unflatten.svg?style=flat-square)](https://npmjs.org/package/arr-flatten-unflatten)\n\n\u003e non-recursive method of flattening an array or arrays and unflattening the result\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save arr-flatten-unflatten\n```\n\nInstall with [yarn](https://yarnpkg.com):\n\n```sh\n$ yarn add arr-flatten-unflatten\n```\n\n## Usage\n\n```js\nconst { flatten, unflatten } = require(\"arr-flatten-unflatten\");\n\nlet flat = flatten([2, 4, [8, [2, [32, 64]], 7], 5]);\n/**\n * =\u003e {\n * \"[0]\": 2,\n * \"[1]\": 4,\n * \"[2][0]\": 8,\n * \"[2][1][0]\": 2,\n * \"[2][1][1][0]\": 32,\n * \"[2][1][1][1]\": 64,\n * \"[2][2]\": 7,\n * \"[3]\": 5\n * }\n * */\n\nunflatten(flat);\n// =\u003e [2, 4, [8, [2, [32, 64]], 7], 5]\n```\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Author\n\n- [github/Quernest](https://github.com/quernest)\n\n### License\n\nCopyright © 2019, [Quernest](https://github.com/Quernest).\nReleased under the [MIT License](LICENSE).\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquernest%2Farr-flatten-unflatten","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquernest%2Farr-flatten-unflatten","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquernest%2Farr-flatten-unflatten/lists"}