{"_id":"o-unflatten","_rev":"14-3cda1db25ca1282335af9d781950e7b1","name":"o-unflatten","description":"Package for conversion from flat to nested objects","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"o-unflatten","version":"1.0.0","description":"Package for conversion from flat to nested objects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ubcent/unflatten.git"},"author":{"name":"Dmitry Bondarchuk"},"license":"UNLICENSED","dependencies":{"lodash":"^4.13.1"},"gitHead":"b4c34d83c520a7abeb5bc84feb4700d9f111a497","bugs":{"url":"https://github.com/ubcent/unflatten/issues"},"homepage":"https://github.com/ubcent/unflatten#readme","_id":"o-unflatten@1.0.0","_shasum":"ece89733a3f4465cf2798b81f899f722adc9c46a","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"ubcent","email":"dvbondarchuk@gmail.com"},"dist":{"shasum":"ece89733a3f4465cf2798b81f899f722adc9c46a","tarball":"https://registry.npmjs.org/o-unflatten/-/o-unflatten-1.0.0.tgz","integrity":"sha512-9bvQZPtdltRSgRv825jefI8ZrI6tfJ1Sbj5cy3krRboSRxAAgXkGBTjBqqEK0wh71nJxnQ7EJ2oBH9PtEZraGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID1IP0ZWUJ2iyjfmJFTbbN1YJYdbqeH+S0P7NLHFeTvzAiEA8Asu76G07UhAdajhuzSa/P7lYSy9+g9wCNRJV9rw6DE="}]},"maintainers":[{"name":"ubcent","email":"dvbondarchuk@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/o-unflatten-1.0.0.tgz_1466503414606_0.04866033047437668"}},"1.0.1":{"name":"o-unflatten","version":"1.0.1","description":"Package for conversion from flat to nested objects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ubcent/unflatten.git"},"author":{"name":"Dmitry Bondarchuk"},"license":"UNLICENSED","dependencies":{"lodash":"^4.13.1"},"gitHead":"b4c34d83c520a7abeb5bc84feb4700d9f111a497","bugs":{"url":"https://github.com/ubcent/unflatten/issues"},"homepage":"https://github.com/ubcent/unflatten#readme","_id":"o-unflatten@1.0.1","_shasum":"d45b22227688db4c5786800803900d22851eed7a","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"ubcent","email":"dvbondarchuk@gmail.com"},"dist":{"shasum":"d45b22227688db4c5786800803900d22851eed7a","tarball":"https://registry.npmjs.org/o-unflatten/-/o-unflatten-1.0.1.tgz","integrity":"sha512-I/CPXfdUgpVJn4EL3iIFJQLJzcQj27oEpZv+m1ro6X8rfP1SVz4pPFkqNHEy8JoZ0WWbRvH2mQ8jhi6biV3u5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqill1EDbHXgsW7TRXYY6mez0IiAAPlJq2PO2upVQFRgIhAK/JBMaG97YKHSatlLsfXOSM6HccdIJ4JkAezu0zTbqs"}]},"maintainers":[{"name":"ubcent","email":"dvbondarchuk@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/o-unflatten-1.0.1.tgz_1466503640221_0.37142555229365826"}},"1.0.2":{"name":"o-unflatten","version":"1.0.2","description":"Package for conversion from flat to nested objects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ubcent/unflatten.git"},"author":{"name":"Dmitry Bondarchuk"},"license":"UNLICENSED","dependencies":{"lodash":"^4.13.1"},"gitHead":"b4c34d83c520a7abeb5bc84feb4700d9f111a497","bugs":{"url":"https://github.com/ubcent/unflatten/issues"},"homepage":"https://github.com/ubcent/unflatten#readme","_id":"o-unflatten@1.0.2","_shasum":"1b992257d72bf8f4f7cc6b88c82c9d0f785a7be8","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"ubcent","email":"dvbondarchuk@gmail.com"},"dist":{"shasum":"1b992257d72bf8f4f7cc6b88c82c9d0f785a7be8","tarball":"https://registry.npmjs.org/o-unflatten/-/o-unflatten-1.0.2.tgz","integrity":"sha512-VVK0qQcxhsOMWJvxmz+Kkc1PnY9oNnn6goPeyuyg5pVN44zzmWPWC7j1wxksSnNs6LdqlAbAiYC4tudZM8/KkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWsEZ6aswKCHpA+nl+ve8PUoNodKspSuuIrD1YRWeeBAIhAOgvmelQa8fyusEILH9ePALBKikaIo0CxIyPRAvIMtjw"}]},"maintainers":[{"name":"ubcent","email":"dvbondarchuk@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/o-unflatten-1.0.2.tgz_1466503704550_0.001524000195786357"}},"1.0.3":{"name":"o-unflatten","version":"1.0.3","description":"Package for conversion from flat to nested objects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ubcent/unflatten.git"},"author":{"name":"Dmitry Bondarchuk"},"license":"UNLICENSED","dependencies":{},"gitHead":"333e232695430bf36045597fdd2f6aa62f9a2027","bugs":{"url":"https://github.com/ubcent/unflatten/issues"},"homepage":"https://github.com/ubcent/unflatten#readme","_id":"o-unflatten@1.0.3","_shasum":"b1b39a6abf609eefb46d256bc838d01713e4d04a","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"ubcent","email":"dvbondarchuk@gmail.com"},"dist":{"shasum":"b1b39a6abf609eefb46d256bc838d01713e4d04a","tarball":"https://registry.npmjs.org/o-unflatten/-/o-unflatten-1.0.3.tgz","integrity":"sha512-O5A42pREX2COLwjIa1Hz4X2koXY1ZnxAnvp5e8WPI8CUUtf42iNz8a0RpCQD8cXjOqv2LJEo60JgA+P+v71BbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG0ANF1oz6I0M++1Ol1iCmxwS8onDLXRohuZD6BEP8qIAiEA3vuQ5MLRAtG/2hLQXVJY2u7ApOZpDxfmtDPBLN/U3BU="}]},"maintainers":[{"name":"ubcent","email":"dvbondarchuk@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/o-unflatten-1.0.3.tgz_1466503762450_0.9364573701750487"}},"1.0.4":{"name":"o-unflatten","version":"1.0.4","description":"Package for conversion from flat to nested objects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ubcent/unflatten.git"},"author":{"name":"Dmitry Bondarchuk"},"license":"UNLICENSED","dependencies":{},"gitHead":"6ea5048627053cd62fa3c6e58376684570f1bbf2","bugs":{"url":"https://github.com/ubcent/unflatten/issues"},"homepage":"https://github.com/ubcent/unflatten#readme","_id":"o-unflatten@1.0.4","_shasum":"bd3c92c1d6edb290b39f8ae826a414130f086fef","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"ubcent","email":"dvbondarchuk@gmail.com"},"dist":{"shasum":"bd3c92c1d6edb290b39f8ae826a414130f086fef","tarball":"https://registry.npmjs.org/o-unflatten/-/o-unflatten-1.0.4.tgz","integrity":"sha512-pF2dK7ZeOSXe/mK4Z737I328KoQP8h48Y6G5VOc0/23RwAt1q6C8mLUpyzT0GXmpONyGoGy/qU+zR9lymakraA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXlCT699XrH59EdyN0sz1DzGQto8zRvC31PTvqzAcoIAIgCPdetndSih6Ohc8iwYJrSmF/8+Y3M/c8DyTnlu/2D48="}]},"maintainers":[{"name":"ubcent","email":"dvbondarchuk@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/o-unflatten-1.0.4.tgz_1466503846515_0.4857210172340274"}},"1.0.5":{"name":"o-unflatten","version":"1.0.5","description":"Package for conversion from flat to nested objects","keywords":["unflatten","flat arrays","nested objects","objects"],"engines":{"node":"5.5.0","npm":"3.5.1"},"main":"index.js","scripts":{"test":"mocha --recursive"},"repository":{"type":"git","url":"git+https://github.com/ubcent/unflatten.git"},"author":{"name":"Dmitry Bondarchuk"},"license":"UNLICENSED","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"ca32e5d02215056c0d6f00e32e93728c01ac623e","bugs":{"url":"https://github.com/ubcent/unflatten/issues"},"homepage":"https://github.com/ubcent/unflatten#readme","_id":"o-unflatten@1.0.5","_shasum":"56946b5a82e08938498b8f9c2b2cdaf38aed73c8","_from":".","_npmVersion":"3.5.2","_nodeVersion":"6.2.0","_npmUser":{"name":"ubcent","email":"dvbondarchuk@gmail.com"},"dist":{"shasum":"56946b5a82e08938498b8f9c2b2cdaf38aed73c8","tarball":"https://registry.npmjs.org/o-unflatten/-/o-unflatten-1.0.5.tgz","integrity":"sha512-Vv174EfXs+jT4oNVWLZUW9/IBfFHn/b2wdHtgoU+P/LlOXMGFmXNGX/iN42qG4OkE96NKAXjDY3S9W7bQEksGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxB6YAohkRiWIaHYn5Ni6r2bSXFjF59LXCluTgGly5xAIgfinm4a1bja7DqFDeDfaOrjX8LpDAvGc1IuNyyEsyPQY="}]},"maintainers":[{"name":"ubcent","email":"dvbondarchuk@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/o-unflatten-1.0.5.tgz_1466744630017_0.8433434688486159"}},"1.0.6":{"name":"o-unflatten","version":"1.0.6","description":"Package for conversion from flat to nested objects","keywords":["unflatten","flat arrays","nested objects","objects"],"engines":{"node":"5.5.0","npm":"3.5.1"},"main":"index.js","scripts":{"test":"mocha --recursive"},"repository":{"type":"git","url":"git+https://github.com/ubcent/unflatten.git"},"author":{"name":"Dmitry Bondarchuk"},"license":"UNLICENSED","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"5c8a316246e7e3561b3b2cdaa5791732bd0d4e73","bugs":{"url":"https://github.com/ubcent/unflatten/issues"},"homepage":"https://github.com/ubcent/unflatten#readme","_id":"o-unflatten@1.0.6","_shasum":"7b22b4115030cc5ad8d5b8a6aa3df51c5dc389a6","_from":".","_npmVersion":"3.5.2","_nodeVersion":"6.2.0","_npmUser":{"name":"ubcent","email":"dvbondarchuk@gmail.com"},"dist":{"shasum":"7b22b4115030cc5ad8d5b8a6aa3df51c5dc389a6","tarball":"https://registry.npmjs.org/o-unflatten/-/o-unflatten-1.0.6.tgz","integrity":"sha512-gWaJsBBSR/0/LACljWcTAsB49TII2Y8HN2acevGWVfsaj+Lyto6I2DCFycQ6oTrWuEP8RhEcgV2Y9Sdpg5g9Pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgQL9HNnfgCINCUiIjtTf0U1HjGoNrC3kHAzmyH+cPNwIhAKWH3v2L04SZszM3c4NawdtFDtZvqDctobPEjc34l9wq"}]},"maintainers":[{"name":"ubcent","email":"dvbondarchuk@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/o-unflatten-1.0.6.tgz_1466744790916_0.40036183735355735"}},"1.0.7":{"name":"o-unflatten","version":"1.0.7","description":"Package for conversion from flat to nested objects","keywords":["unflatten","flat arrays","nested objects","objects"],"engines":{"node":"5.5.0","npm":"3.5.1"},"main":"index.js","scripts":{"test":"mocha --recursive"},"repository":{"type":"git","url":"git+https://github.com/ubcent/unflatten.git"},"author":{"name":"Dmitry Bondarchuk"},"license":"UNLICENSED","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"15c640ff84edbaebacfdc475292e831347419114","bugs":{"url":"https://github.com/ubcent/unflatten/issues"},"homepage":"https://github.com/ubcent/unflatten#readme","_id":"o-unflatten@1.0.7","_shasum":"c0937293e5b85156566e27e7cd0488eccd423187","_from":".","_npmVersion":"3.5.2","_nodeVersion":"6.2.0","_npmUser":{"name":"ubcent","email":"dvbondarchuk@gmail.com"},"dist":{"shasum":"c0937293e5b85156566e27e7cd0488eccd423187","tarball":"https://registry.npmjs.org/o-unflatten/-/o-unflatten-1.0.7.tgz","integrity":"sha512-EcQxxnRWHYswuqyfea37PflQeZBoHOZmagIpRbqDVhAWWxsmuQ7AXCkpT15LH2ZbWDxjBT0J8c/epqHp4wBIUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWSrGPsHKCaIwn2Hxw8xXWz0ftXCTwI3r2G04e297WbgIgC5MNr+LUI671zZO4KlLDqqDLtXOIyDeYNrEdXB17Cm8="}]},"maintainers":[{"name":"ubcent","email":"dvbondarchuk@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/o-unflatten-1.0.7.tgz_1466745180942_0.23605236667208374"}},"1.0.8":{"name":"o-unflatten","version":"1.0.8","description":"Package for conversion from flat to nested objects","keywords":["unflatten","flat arrays","nested objects","objects"],"engines":{"node":"5.5.0","npm":"3.5.1"},"main":"index.js","scripts":{"test":"mocha --recursive"},"repository":{"type":"git","url":"git+https://github.com/ubcent/unflatten.git"},"author":{"name":"Dmitry Bondarchuk"},"license":"UNLICENSED","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"3000be8440c6c68df0b0d45e34b55405fb75ff04","bugs":{"url":"https://github.com/ubcent/unflatten/issues"},"homepage":"https://github.com/ubcent/unflatten#readme","_id":"o-unflatten@1.0.8","_shasum":"527f629e24e5f0f0b16cb0b50f31ab23eed153da","_from":".","_npmVersion":"3.5.2","_nodeVersion":"6.2.0","_npmUser":{"name":"ubcent","email":"dvbondarchuk@gmail.com"},"dist":{"shasum":"527f629e24e5f0f0b16cb0b50f31ab23eed153da","tarball":"https://registry.npmjs.org/o-unflatten/-/o-unflatten-1.0.8.tgz","integrity":"sha512-SifUlD64+qJjjqvVwR28DQZMxSnO+NXwFi2LAX9DCPhtNGdKUOxtAGe0D0CPmBZZm1sU4p8ZJRMW9iWCtfKzIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDL1mH9XGzbvSQgbb+WkxZC4bGoWbhZC1YpDD2L+4XyZQIgf6wamLUfjbqyVQQ/C+fpMnqF4t4Pj0XFcHV/zJ0nGVY="}]},"maintainers":[{"name":"ubcent","email":"dvbondarchuk@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/o-unflatten-1.0.8.tgz_1466746359721_0.4432984655722976"}},"1.0.9":{"name":"o-unflatten","version":"1.0.9","description":"Package for conversion from flat to nested objects","keywords":["unflatten","flat arrays","nested objects","objects"],"main":"index.js","scripts":{"test":"mocha --recursive"},"repository":{"type":"git","url":"git+https://github.com/ubcent/unflatten.git"},"author":{"name":"Dmitry Bondarchuk"},"license":"UNLICENSED","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"0480b6e1272ab18e031db9b8a613d94969054595","bugs":{"url":"https://github.com/ubcent/unflatten/issues"},"homepage":"https://github.com/ubcent/unflatten#readme","_id":"o-unflatten@1.0.9","_shasum":"487764283eb3d36db95765e27928707df2c19c1a","_from":".","_npmVersion":"3.5.2","_nodeVersion":"6.2.0","_npmUser":{"name":"ubcent","email":"dvbondarchuk@gmail.com"},"dist":{"shasum":"487764283eb3d36db95765e27928707df2c19c1a","tarball":"https://registry.npmjs.org/o-unflatten/-/o-unflatten-1.0.9.tgz","integrity":"sha512-lbNAIVaemukTFGtI6U4farLdlyAZDNTo7ZqclGuBwG6K1uiqf+kGpuGnkgo9fnG1EfwJYgfo2iam28ZxvFxcJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHd/g0SdcKSooRFZCnQmvzbjZRge+9C6Ua3p1D4XyyJkAiBnuvpwqu4KqzkGpBZf6X7XMzSOE/6UH9NFstFF+nfYrA=="}]},"maintainers":[{"name":"ubcent","email":"dvbondarchuk@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/o-unflatten-1.0.9.tgz_1466755961180_0.5073778645601124"}},"1.1.0":{"name":"o-unflatten","version":"1.1.0","description":"Package for conversion from flat to nested objects","keywords":["unflatten","flat arrays","nested objects","objects"],"main":"index.js","scripts":{"test":"mocha --recursive"},"repository":{"type":"git","url":"git+https://github.com/ubcent/unflatten.git"},"author":{"name":"Dmitry Bondarchuk"},"license":"UNLICENSED","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.5.3"},"gitHead":"efc755afaf46f388e3a39ba41aaf429b3244b0d9","bugs":{"url":"https://github.com/ubcent/unflatten/issues"},"homepage":"https://github.com/ubcent/unflatten#readme","_id":"o-unflatten@1.1.0","_shasum":"1a3355451301b6e9550329dd1244b66a2e256082","_from":".","_npmVersion":"3.5.2","_nodeVersion":"6.2.0","_npmUser":{"name":"ubcent","email":"dvbondarchuk@gmail.com"},"dist":{"shasum":"1a3355451301b6e9550329dd1244b66a2e256082","tarball":"https://registry.npmjs.org/o-unflatten/-/o-unflatten-1.1.0.tgz","integrity":"sha512-iMBx0ThsvyAzKz5k/1/j0AR3A5lz2/nx9YZgOYaGUrjw6JDZSDOrtopidVLwTC0i4j4ENwzDgYObpnDDC41Dkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1j21VXwoAotLa+zxYLd/oGIXp1yzL9PdTTzlJ9WIZewIgcU73uWmNPiE5QPxnv3XSqkk0TTCatuC7mMu1cZ6Ck6M="}]},"maintainers":[{"name":"ubcent","email":"dvbondarchuk@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/o-unflatten-1.1.0.tgz_1467092901479_0.5372327992226928"}}},"readme":"# unflatten\r\n\r\n[![Version](https://img.shields.io/npm/v/o-unflatten.svg)](https://www.npmjs.com/package/o-unflatten)\r\n[![Downloads](https://img.shields.io/npm/dt/o-unflatten.svg)](https://www.npmjs.com/package/o-unflatten)\r\n\r\nPackage for conversion from flat to nested objects\r\n\r\n## Installation\r\n\r\n```sh\r\nnpm install --save o-unflatten\r\n```\r\n\r\n## Usage\r\n\r\n```javascript\r\nconst nodes = [\r\n\t{id: 1, parentId: 0},\r\n\t{id: 2, parentId: 0},\r\n\t{id: 3, parentId: 1},\r\n\t{id: 4, parentId: 1},\r\n\t{id: 5, parentId: 2},\r\n\t{id: 6, parentId: 4},\r\n\t{id: 7, parentId: 5}\r\n];\r\nconst unflatten = require('o-unflatten');\r\nconst nested = unflatten(nodes);\r\nconsole.log(nested);\r\n```\r\n\r\n### Input \r\n\r\n```javascript\r\nconst nodes = [\r\n\t{id: 1, parentId: 0},\r\n\t{id: 2, parentId: 0},\r\n\t{id: 3, parentId: 1},\r\n\t{id: 4, parentId: 1},\r\n\t{id: 5, parentId: 2},\r\n\t{id: 6, parentId: 4},\r\n\t{id: 7, parentId: 5}\r\n];\r\n```\r\n\r\n### Output\r\n\r\n```javascript\r\nconst nested = [\r\n\t{\r\n    \t\"id\": 1,\r\n    \t\"parentId\": 0,\r\n    \t\"children\": [\r\n        \t{\r\n            \t\"id\": 3,\r\n            \t\"parentId\": 1\r\n        \t},\r\n        \t{\r\n            \t\"id\": 4,\r\n            \t\"parentId\": 1,\r\n            \t\"children\": [\r\n                \t{\r\n                    \t\"id\": 6,\r\n                    \t\"parentId\": 4\r\n                \t}\r\n            \t]\r\n        \t}\r\n    \t]\r\n\t},\r\n\t{\r\n    \t\"id\": 2,\r\n    \t\"parentId\": 0,\r\n    \t\"children\": [\r\n        \t{\r\n            \t\"id\": 5,\r\n            \t\"parentId\": 2,\r\n            \t\"children\": [\r\n                \t{\r\n                    \t\"id\": 7,\r\n                    \t\"parentId\": 5\r\n                \t}\r\n            \t]\r\n        \t}\r\n    \t]\r\n\t}\r\n];\r\n```\r\n\r\n### Tests\r\n\r\n```sh\r\nnpm run test\r\n```\r\n","maintainers":[{"name":"ubcent","email":"dvbondarchuk@gmail.com"}],"time":{"modified":"2022-06-22T15:09:01.734Z","created":"2016-06-21T10:03:36.030Z","1.0.0":"2016-06-21T10:03:36.030Z","1.0.1":"2016-06-21T10:07:21.734Z","1.0.2":"2016-06-21T10:08:26.037Z","1.0.3":"2016-06-21T10:09:25.088Z","1.0.4":"2016-06-21T10:10:48.025Z","1.0.5":"2016-06-24T05:03:52.541Z","1.0.6":"2016-06-24T05:06:33.209Z","1.0.7":"2016-06-24T05:13:03.632Z","1.0.8":"2016-06-24T05:32:41.978Z","1.0.9":"2016-06-24T08:12:43.912Z","1.1.0":"2016-06-28T05:48:23.994Z"},"homepage":"https://github.com/ubcent/unflatten#readme","repository":{"type":"git","url":"git+https://github.com/ubcent/unflatten.git"},"author":{"name":"Dmitry Bondarchuk"},"bugs":{"url":"https://github.com/ubcent/unflatten/issues"},"license":"UNLICENSED","readmeFilename":"README.md","keywords":["unflatten","flat arrays","nested objects","objects"]}