{"_id":"flattree","_rev":"27-0b7f82836376999bfcb934b1261e0588","name":"flattree","description":"Convert hierarchical tree structure to flat structure.","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"flattree","version":"0.1.0","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm run build && npm test && npm run lint","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.0-beta.6","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.4.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.6.1","tap":"^5.7.0"},"nyc":{"exclude":["src/polyfill.js"]},"gitHead":"d91ea3a2c6bb53b0631c15b80c6d69d286b058be","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.1.0","_shasum":"07cef5ce78e081e1eee71ede5429f24c5d34942c","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"07cef5ce78e081e1eee71ede5429f24c5d34942c","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.1.0.tgz","integrity":"sha512-zW/AA2Fp+2Kw9QzYewuQIEtgIxglSNweTPi4q6UsGD0yacJ84Irvg86g7iRdI83VDyIgnLCI5r6wZMyKF/MdXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDy7sNdm1f4NdoRwI/k2v8oXQ2OB58R0zdMFV+Et9r2qAIhAIru9z/Ul1qgRQXPvm88FP6ft1/j22WoI5UksUloNgzW"}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/flattree-0.1.0.tgz_1458792394537_0.5402710563503206"},"directories":{}},"0.2.0":{"name":"flattree","version":"0.2.0","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm run build && npm test && npm run lint","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/node-flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.0-beta.6","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.4.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.6.1","tap":"^5.7.0"},"nyc":{"exclude":["src/polyfill.js"]},"gitHead":"a8a36568839e82b0ffd27fa16951cd47b8708fb8","bugs":{"url":"https://github.com/cheton/node-flattree/issues"},"homepage":"https://github.com/cheton/node-flattree#readme","_id":"flattree@0.2.0","_shasum":"b5a3432d1f59205c5b2511853620311134d4ceee","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"b5a3432d1f59205c5b2511853620311134d4ceee","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.2.0.tgz","integrity":"sha512-5+DPJLx8MWTTUkYgFu/M1h54PRTQdvkkAhfMKs6sgLz48iuS2zJv/i9Faskbu28w87Xbk2DUnG7vjn1xWCLRpg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAbLSBGPjclzs0r0QZ1h/+z9OCaPKI+J/Z1UNVU1v04zAiEAmFvLPUjFRzHxpMauHszQUBGOTzYbDnRLUU1I/Z5WVnM="}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/flattree-0.2.0.tgz_1458902184248_0.32042299257591367"},"directories":{}},"0.3.0":{"name":"flattree","version":"0.3.0","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm run build && npm test && npm run lint","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/node-flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.0-beta.6","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.4.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.6.1","tap":"^5.7.0"},"nyc":{"exclude":["src/polyfill.js"]},"gitHead":"93463bfd949a3394404eaa7ba1ffb0a0d2c456cf","bugs":{"url":"https://github.com/cheton/node-flattree/issues"},"homepage":"https://github.com/cheton/node-flattree#readme","_id":"flattree@0.3.0","_shasum":"643927319b4703e473a0ca686b85e15e8a11cbda","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"643927319b4703e473a0ca686b85e15e8a11cbda","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.3.0.tgz","integrity":"sha512-oMt8JfWGu2z1rW070IpefOOyU/DXdZYDORRbcuz2pQhKiIaCr8xvL8BVE9W8Z4IF0vMRFdLEucgcnfWH5rO92g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDkqNBF+DrFCkuDfhenniCXH8H9MdgXL4EbPKubaIHPBAiEA9YDyCd0lnRh/xRbaeiZIkqPmrXV/O6Tbs/7wRKLvM2o="}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.3.0.tgz_1459081267567_0.5667231800034642"},"directories":{}},"0.4.0":{"name":"flattree","version":"0.4.0","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm run build && npm test && npm run lint","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/node-flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.0-beta.6","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.4.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.6.1","tap":"^5.7.0"},"nyc":{"exclude":["src/polyfill.js"]},"gitHead":"4d211a3c6d9b5b60f265a611a12bcbb2b9d7efd7","bugs":{"url":"https://github.com/cheton/node-flattree/issues"},"homepage":"https://github.com/cheton/node-flattree#readme","_id":"flattree@0.4.0","_shasum":"58b89161a34627f9bfe40df7cb2e7ccfdedb5873","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"58b89161a34627f9bfe40df7cb2e7ccfdedb5873","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.4.0.tgz","integrity":"sha512-8xEwuHcLXNxxNUUqAijzcyjkrD5KDaCR58cp5YRr+7Bb94ZVOGKPxXYitFdfs+dnGXE6rgAuWFBP/fRvmbnsiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGnkuFz63Y7DRyFPddemfuuaD4xrXLHa02XOr0SPJ7yxAiEA+JWXno1ALN0KDmrEVPpxuN3xvqupKerKNj2QRzOJtls="}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.4.0.tgz_1459095287290_0.8520928253419697"},"directories":{}},"0.5.0":{"name":"flattree","version":"0.5.0","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm run build && npm test && npm run lint","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.0-beta.6","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.4.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.6.1","tap":"^5.7.0"},"nyc":{"exclude":["test/index.js"]},"gitHead":"7f78f7a602f66afe726e0ff27d9733735e3fec0c","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.5.0","_shasum":"ecdcd5d6563e8e860c13f7d9818e28d7b6f699a6","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"ecdcd5d6563e8e860c13f7d9818e28d7b6f699a6","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.5.0.tgz","integrity":"sha512-foAZwU/WqR73ecZu+RqpqCJs4egbvs8/LLCOdeqLup6u8jLZuTM0NrDqVACMiiYrVxeBiTzuG257mZm9viYD9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF5pH0rxG7hNSfXJ3+jtdZ4elMJg2i3AGAnoMDxa7C/SAiBhatbbLWCyZHbQffrrT8hCMLSOcAGHelMUejyDfcqt9g=="}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.5.0.tgz_1459155728176_0.8544965195469558"},"directories":{}},"0.5.1":{"name":"flattree","version":"0.5.1","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm run build && npm test && npm run lint","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.0-beta.6","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.4.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.6.1","tap":"^5.7.0"},"nyc":{"exclude":["test/index.js"]},"gitHead":"d2dc34183d31593f1ddaf9c09dc5c7eea001fec6","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.5.1","_shasum":"ab306fa36ac7fb6dc1d335e8c05f6a3f38727335","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"ab306fa36ac7fb6dc1d335e8c05f6a3f38727335","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.5.1.tgz","integrity":"sha512-h710LVeQcNp7UI2epjQwjEeWqdynxX4jiFMIeRqsc3xcWz8eubJmtY8oUhPuYZUy24711XBU7Y9Gn5/2Lc9JGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtuVAK+7TsWWj+jCF4OKH2C2KZa5p7i0gR0LvWXhr93wIgetWtY2zNfaCs++bXrYJeIv6Ef6oSE+HJmXfTspAplTg="}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.5.1.tgz_1459182968075_0.6458175666630268"},"directories":{}},"0.5.2":{"name":"flattree","version":"0.5.2","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm run build && npm test && npm run lint","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.0-beta.6","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.4.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.6.1","tap":"^5.7.0"},"nyc":{"exclude":["test/index.js"]},"gitHead":"2ea8a0f1016be5c7e4d55fe6f7624570046b281c","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.5.2","_shasum":"7c45684e562f4139544504407217f15ba445f86c","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"7c45684e562f4139544504407217f15ba445f86c","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.5.2.tgz","integrity":"sha512-Bcs5B0piv/zko3jg7vrBXHp3k1iKofE2P96mhdlsOvAzU4Vt60+jlZ0XsmcSzV63EBxqt2H+qg6IcG/aaTgXlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBmixCokGeNR8IKGsdfONgiscMiAQ00vDEfNrNnWa4+QIgOFnQK01OHPYcH0UvgTCs09wcgzS9gdwEjfGm4NX1RxE="}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.5.2.tgz_1459220933076_0.5651882162783295"},"directories":{}},"0.5.3":{"name":"flattree","version":"0.5.3","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm run build && npm test && npm run lint","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.0-beta.6","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.4.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.6.1","tap":"^5.7.0"},"nyc":{"exclude":["test/index.js"]},"gitHead":"1e340298dfdd09c33da4b0442842b424875dd2c5","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.5.3","_shasum":"1ed1b08737fc64153e0e53b98b3af0d777a533b7","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"1ed1b08737fc64153e0e53b98b3af0d777a533b7","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.5.3.tgz","integrity":"sha512-kmggFZKGXP+92wemqnO8bRkioDapD6vdg3BVTEu2t3CgjehkFaSR4pduFgcMfaOgJm9EGJvDA5Uek1TGZxm5NQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF0h11rvdLbwJigYqmfss+0rsiVWUC+y7WuUXNJU1+bNAiEA5Zik7l8b8mTAqM/Ao6ReHvqIfHVUadp+2udUsPv7/4c="}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.5.3.tgz_1459310388345_0.8522234016563743"},"directories":{}},"0.5.4":{"name":"flattree","version":"0.5.4","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm run build && npm test && npm run lint","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.0-beta.6","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.4.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.6.1","tap":"^5.7.0"},"nyc":{"exclude":["test/index.js"]},"gitHead":"0ef5777ca1572f88e6e1200db670e36f8527363d","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.5.4","_shasum":"c50817a7da03ce0379afedee66d9fa0971a5c3f1","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"c50817a7da03ce0379afedee66d9fa0971a5c3f1","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.5.4.tgz","integrity":"sha512-G9myxPj35UaCE4y1fnjxAafGq76IxrJx21jyqTCnzczlHG6XJ8DUBrI7QbIgv8GOBCXjm1z37gWReqna3BGYjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHkL2oRulp+RV7y/xeK590c2YtdI+2H42zr6IIrXJtANAiEAj1UK2Qwuox0Azz0DEBKDrLuMw99R/Ghl7UjpvTwWYnM="}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.5.4.tgz_1459353559811_0.04813321144320071"},"directories":{}},"0.5.5":{"name":"flattree","version":"0.5.5","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm run build && npm test && npm run lint","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.0-beta.6","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.4.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.6.1","tap":"^5.7.0"},"nyc":{"exclude":["test/index.js"]},"gitHead":"e3e71292518a6521d9a129010bdf380e617e7883","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.5.5","_shasum":"b3dff065c26f0af41ceb3a5b7ab56fd3983079ca","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"b3dff065c26f0af41ceb3a5b7ab56fd3983079ca","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.5.5.tgz","integrity":"sha512-vVdpBJ6GB+hnurqvKD6LUQ0gSMw2QCQvz9CGPBRVCXy5oLP2eJzTdZyjSThg19rMTe696Wcm/WCZcZ6iSFpLRQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFkD3raS7+C1C6eclTc665lWWpjErCoJlQ6FJhMfDu7dAiBdamCHZkMSPfQ/8XN0m/t0fhOnHzLJo0HjCY+ZSSyGyw=="}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.5.5.tgz_1459512256621_0.6830148717854172"},"directories":{}},"0.6.0":{"name":"flattree","version":"0.6.0","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm run build && npm test && npm run lint","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.2","babel-plugin-transform-es3-member-expression-literals":"^6.5.0","babel-plugin-transform-es3-property-literals":"^6.5.0","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.6.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.7.0","tap":"^5.7.0"},"nyc":{"exclude":["test/index.js"]},"gitHead":"df868bb518d285593e042ad85e0416f5770baeb5","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.6.0","_shasum":"8ca0f8ffa7bc7f953695a9757f19b882cfcc4926","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"8ca0f8ffa7bc7f953695a9757f19b882cfcc4926","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.6.0.tgz","integrity":"sha512-ZaNlSRkVC/8It8Nuz9lf8lpYkP2GUKd8Z0EbRGX9KT7FcAqzgpUYe6OwmN54ScbbXiwXMCgpEcKZkTeFshUIdQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAg6IGyGQve5npOWuvGNzUDS4LJdEuAF6yxfwOXu/PeVAiBcDyeSpMLc5/u6B5LzASK59D/Kilbxq2YitcQEhCEArw=="}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.6.0.tgz_1459618139580_0.001513016875833273"},"directories":{}},"0.6.1":{"name":"flattree","version":"0.6.1","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm run build && npm test && npm run lint","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.2","babel-plugin-transform-es3-member-expression-literals":"^6.5.0","babel-plugin-transform-es3-property-literals":"^6.5.0","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.6.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.7.0","tap":"^5.7.0"},"nyc":{"exclude":["test/index.js"]},"gitHead":"5d117b7da5ae987494bf79bbb2563383a68d7054","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.6.1","_shasum":"a89cc3df62fe065e8c94cb7bbd8bc3508bcd4c39","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"a89cc3df62fe065e8c94cb7bbd8bc3508bcd4c39","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.6.1.tgz","integrity":"sha512-kgcbV6vcE/AbNxX3p1BtCAEpCnqil5rb56n+g5nUYBo26zBRkbYLxUfN/vGJ7TT7NwkpkEW/pqoI7ufUJE26JA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClFnqfg05HtXsTK4FEVVFj1nR/PYlJILlE+78NKVCuwAIhAJBJQFkBgne/hp69jL/ASoL/xJt2ZMIzno6ww3X6hozq"}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.6.1.tgz_1459619170067_0.25730621675029397"},"directories":{}},"0.6.2":{"name":"flattree","version":"0.6.2","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm test && npm run build","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.2","babel-plugin-transform-es3-member-expression-literals":"^6.5.0","babel-plugin-transform-es3-property-literals":"^6.5.0","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.6.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.7.0","tap":"^5.7.0"},"nyc":{"exclude":["test/index.js"]},"gitHead":"9186c8f04e71914d1dbeff36f8e737ffc887b63b","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.6.2","_shasum":"00e5acda849240797b1c5090200bb4190dd40af2","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"00e5acda849240797b1c5090200bb4190dd40af2","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.6.2.tgz","integrity":"sha512-34FZShx7SDkFYC2oOKQnEC+xyjHvsbUWYPvCgQhOmc3jVVYrsycCDAWjQ3IhN3U/3xMoBpzLlesxh4sRN8oX8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDPiJJ0KjQPMBDtV303OG+jERfy2jqKSDrOa3GJN+k75AiEA+8sP2Xe6kLfOz1whzzxwnCwgKopWFsflqYL7lbI9wsc="}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.6.2.tgz_1459652755029_0.5616963771171868"},"directories":{}},"0.7.0":{"name":"flattree","version":"0.7.0","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm test && npm run build","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.2","babel-plugin-transform-es3-member-expression-literals":"^6.5.0","babel-plugin-transform-es3-property-literals":"^6.5.0","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.6.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.7.0","tap":"^5.7.0"},"nyc":{"exclude":["test/index.js"]},"gitHead":"f3080dca6dc0a17f0431196a073e688d9540fe34","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.7.0","_shasum":"4114f76c3fcdb07a51c6ec32fe369e6f06b58708","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"4114f76c3fcdb07a51c6ec32fe369e6f06b58708","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.7.0.tgz","integrity":"sha512-OZJhe49HzzQfMjEcZPLaqYePOVHUVmZ8a1LC2/4Vxr+TmHWAKm9bL6pOqAxwdPcU0VPjeQR80nxeb09WFuIrRA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBHGJWNi6+yCwkBYo3e37mLejL2AwKMtsYzURnlZVxFEAiEA2ycNHPo8aRJluoPVqG6WKNGKg9zOh2xtJGBvUs4UNp4="}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.7.0.tgz_1459662014170_0.18857315136119723"},"directories":{}},"0.7.1":{"name":"flattree","version":"0.7.1","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm test && npm run build","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.2","babel-plugin-transform-es3-member-expression-literals":"^6.5.0","babel-plugin-transform-es3-property-literals":"^6.5.0","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.6.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.7.0","tap":"^5.7.0"},"nyc":{"exclude":["test/index.js"]},"gitHead":"153b0b39d8879a5dc64ac9b3121e12caa1828054","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.7.1","_shasum":"fc82ecf7c8548390de3da23da6733da6be3fdfa4","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"fc82ecf7c8548390de3da23da6733da6be3fdfa4","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.7.1.tgz","integrity":"sha512-YQuwXCZSLv8Mi8gt1k6x47y3/yFtOyXZDayXWvh83MnFWwnfpMzCjdfan6u/NLUrfJqfUm1AIT6rS1K5+WehsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG7pDAx7K7KVwAGewgut0+B29zeiwtHTt/Kc81yp8qdxAiEA+JqgDIHb8UJ1N9+BN78dhdap3vhGAt2Q2bYlM1PHVcI="}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.7.1.tgz_1459664637195_0.7223555801901966"},"directories":{}},"0.8.0":{"name":"flattree","version":"0.8.0","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm test && npm run build","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.2","babel-plugin-transform-es3-member-expression-literals":"^6.5.0","babel-plugin-transform-es3-property-literals":"^6.5.0","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.6.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.7.0","tap":"^5.7.0"},"nyc":{"exclude":["test/index.js"]},"gitHead":"426a253a1af7272c6f9510aaf6393000a7c3e575","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.8.0","_shasum":"5a2c2785aec8386a7ebd9a32f2cc7b244a6b8d83","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"5a2c2785aec8386a7ebd9a32f2cc7b244a6b8d83","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.8.0.tgz","integrity":"sha512-Re1WT4TcQi3YI84x35IAH7gTTO5+zqfUZ4AlCTt4OEyQCZP7fZBfk9hFzn40s/DdPIM9DleXzapeDr7UkUNazQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWW7/GCEoswtmlzUNzH2kJRfPrxb2grz8jskYhrZWWOAIhAMXjlPQA22sf6Nrbe5PksljrE3jiV+XwBFRQ2VlbTJrF"}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.8.0.tgz_1459671485649_0.8112217469606549"},"directories":{}},"0.8.1":{"name":"flattree","version":"0.8.1","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm test && npm run build","build":"babel ./src --out-dir ./lib","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.2","babel-plugin-transform-es3-member-expression-literals":"^6.5.0","babel-plugin-transform-es3-property-literals":"^6.5.0","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.6.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.7.0","tap":"^5.7.0"},"nyc":{"exclude":["test/index.js"]},"gitHead":"898ec66a9984ac6ac573ace0e4ff40386f558d6d","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.8.1","_shasum":"3c20e0bce3a8268b06865e83491ceb2c42955379","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"3c20e0bce3a8268b06865e83491ceb2c42955379","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.8.1.tgz","integrity":"sha512-jV9S6vjaO11FZWFmcoP4Dai4e0wMkNIepr66j2v2p+vURw/5PQGmCf9FL3vjkjahGpn+WCYW+DUP3ZLvZDII7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5ocwe1eLuTr1bsJdWxjYaBc2XvUnnqJfx6gJhXKOUVQIhALvkTwwjpluwAM45Pjq/XFtHEuORw2hEuKPWM2egS3hh"}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.8.1.tgz_1459694011768_0.056111297104507685"},"directories":{}},"0.8.2":{"name":"flattree","version":"0.8.2","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm test && npm run build","build":"babel --out-dir ./lib ./src","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"keywords":["flat","flatten","large","scroll","tree"],"devDependencies":{"babel-cli":"^6.6.5","babel-core":"^6.7.4","babel-eslint":"^6.0.2","babel-plugin-transform-es3-member-expression-literals":"^6.5.0","babel-plugin-transform-es3-property-literals":"^6.5.0","babel-preset-es2015":"^6.6.0","babel-preset-es2015-loose":"^7.0.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.8","eslint":"^2.6.0","eslint-config-airbnb":"^6.2.0","eslint-plugin-react":"^4.2.3","lodash":"^4.7.0","tap":"^5.7.0"},"nyc":{"exclude":["test/index.js"]},"gitHead":"935ba007298c91ac9af96d24727c881d52af0d18","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.8.2","_shasum":"2af84a2f114a3bb7805625eeb3e25fdf350c2f23","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"2af84a2f114a3bb7805625eeb3e25fdf350c2f23","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.8.2.tgz","integrity":"sha512-uwyBZvcyTK51PWgp0unm65fw+Quwq4EoI7D6u2UMx9q6CntsqTblMv2yQcAq0YT6Cq2b2rWOk74Gv3SjhPJwOw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFSlZ3n8GTEgve0gGQrYKc6mND+hxdKJsfW3G1hIwqWAAiA1nO0Q8Grk/VVb89+m13gGN/NlP2aGWLJtLk6jpXTCiA=="}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.8.2.tgz_1459939252962_0.619126126402989"},"directories":{}},"0.9.0":{"name":"flattree","version":"0.9.0","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm test && npm run build","build":"babel --out-dir ./lib ./src","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"keywords":["flat","flatten","large","scroll","tree"],"devDependencies":{"babel-cli":"^6.8.0","babel-core":"^6.8.0","babel-eslint":"^6.0.4","babel-plugin-transform-es3-member-expression-literals":"^6.8.0","babel-plugin-transform-es3-property-literals":"^6.8.0","babel-preset-es2015":"^6.6.0","babel-preset-es2015-loose":"^7.0.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.9","eslint":"^2.9.0","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.8.0","eslint-plugin-jsx-a11y":"^1.2.0","eslint-plugin-react":"^5.1.1","lodash":"^4.12.0","tap":"^5.7.1"},"nyc":{"exclude":["test/index.js"]},"gitHead":"acf33c15120301a96d90566800db090abeb38f86","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.9.0","_shasum":"c7fa8363c94508088f827f2a2a50e5a360037e36","_from":".","_npmVersion":"3.8.8","_nodeVersion":"4.4.3","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"c7fa8363c94508088f827f2a2a50e5a360037e36","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.9.0.tgz","integrity":"sha512-fV+s+dPiEzSCe9DNm2xosqyBkbEwfgxwNm7y7v5gULOPEC0WBHft0rmkYLGU6RO5B/R/CnXNqRCGC+wXmxkkJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHmpPr4qVaS6EiQ9h4BwZk3qOkha5+MyDUG7GIlv4lnQIhAP0yzELmM9jn6+kYsxMUQeXYrbaYbDXFaphwyApASdtp"}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.9.0.tgz_1464856306180_0.9812864395789802"},"directories":{}},"0.10.0":{"name":"flattree","version":"0.10.0","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm test && npm run build","build":"babel --out-dir ./lib ./src","test":"./babel-tap --coverage test/*.js","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"./babel-tap --coverage --coverage-report=text-lcov test/*.js | node_modules/.bin/coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"keywords":["flat","flatten","large","scroll","tree"],"devDependencies":{"babel-cli":"^6.8.0","babel-core":"^6.8.0","babel-eslint":"^6.0.4","babel-plugin-transform-es3-member-expression-literals":"^6.8.0","babel-plugin-transform-es3-property-literals":"^6.8.0","babel-preset-es2015":"^6.6.0","babel-preset-es2015-loose":"^7.0.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.9","eslint":"^2.9.0","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.8.0","eslint-plugin-jsx-a11y":"^1.2.0","eslint-plugin-react":"^5.1.1","lodash":"^4.12.0","tap":"^5.7.1"},"nyc":{"exclude":["test/index.js"]},"gitHead":"8ad9819cee6328600fe1a0e9c2a52ecbbc850e9e","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.10.0","_shasum":"b4e8528e3bc82716384e78c78a79cea71d1ac744","_from":".","_npmVersion":"3.10.6","_nodeVersion":"4.4.3","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"shasum":"b4e8528e3bc82716384e78c78a79cea71d1ac744","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.10.0.tgz","integrity":"sha512-vEfcJF513d+2PvKCj6ur6kh3Rlcwv3HNuQo2aCBGLL2pE+yt2X0fYvQhxmRZkfw6b7GFngZ+TzNUKmT10Nijng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFEVlwv2nMgOpKR8qgVns4wt73PBRRJtloCaHAo4sJWAIhANKMI1g1HuzG+OIOf+MkvJAAbHbZ8U13ui5HgBDsGmmS"}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/flattree-0.10.0.tgz_1480302394840_0.6126028383150697"},"directories":{}},"0.11.0":{"name":"flattree","version":"0.11.0","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm test && npm run build","build":"babel --out-dir ./lib ./src","test":"tap test/*.js --node-arg=--require --node-arg=babel-register --node-arg=--require --node-arg=babel-polyfill","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"tap test/*.js --coverage --coverage-report=text-lcov --nyc-arg=--require --nyc-arg=babel-register --nyc-arg=--require --nyc-arg=babel-polyfill | coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"keywords":["flat","flatten","large","scroll","tree"],"devDependencies":{"babel-cli":"^6.8.0","babel-core":"^6.8.0","babel-eslint":"^6.0.4","babel-plugin-transform-es3-member-expression-literals":"^6.8.0","babel-plugin-transform-es3-property-literals":"^6.8.0","babel-preset-es2015":"^6.6.0","babel-preset-es2015-loose":"^7.0.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.9","eslint":"^2.9.0","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.8.0","eslint-plugin-jsx-a11y":"^1.2.0","eslint-plugin-react":"^5.1.1","lodash":"^4.12.0","tap":"^5.7.1"},"nyc":{"exclude":["test/index.js"]},"gitHead":"3b7b52331cd091d52ee5058e7e3f55282859f2b0","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.11.0","_npmVersion":"6.2.0","_nodeVersion":"6.12.0","_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"dist":{"integrity":"sha512-cwnYXYjA4s1qeqYn/9zEDbksnRTtC4ysRgtsm95JK94gTGD38gOzvnh6uSF9SKXHrdvOPOPqW4XSU+x5hxHp9A==","shasum":"0703a597645276fe8c021cb2c00735ea975f2608","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.11.0.tgz","fileCount":21,"unpackedSize":56956,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbUxhrCRA9TVsSAnZWagAA6CIP/1JK0lbXnQra6Qvk/XoH\ngm8RS16P4vUT7+/E38ONBRaM/ql+IrqeMCTr2s9DpenPBS5dDryAgGtyygnT\nqkZtR4Mhw9KSdjkcDXk+gRMYuYVJrlsGKmRUBBnk+MMDbSGCGGZ4mTOcGm1e\n6LSBxHVqEzchtwOdOsMkXNiieyx9M1saDxRGwsiYMFGPx65M7mRnz0PlDiss\nwEXLZz57mYHOtmQOi+hQkdfuibXyKMYAQW0cTqy/Gab8aDvYoatXxMBwxdKN\nRuqLAc22XyEZ77xUs7Tw9b4rGGTP8qNwMajnyKfzoTZ4hCCgnXJcGCXJHVSQ\nRMUPcMmlrExY80aB5DibE8ukLwJFlyIp7f2kBP9il9eeDLe5Z11MlMk2enOM\nCo0m/xsPK3EZrkOvQUmzCa9H7NAcjM7VpLRTedxgd1DeUBbqJXbXj4egUubv\nuPS1O3CtUIizV8I2Z86GoMRFruAYgWRBDNJ9Sq44incNmk2ipvHQHGzx8W07\n4mY4NeZCMxtl7Y+goZB0UlwzeKlcFsWA0C8HkLvIPqKFYC2oAfTDfYzie4mM\nFDEKMy1KBcvi34RTPfoQQqs3SGFfLIrnaSGRl69u8XidHhnUPvzixngvdRL2\n39vEBoEeFheQ4S66fdIldxrp6+bqfIHOH/TGEPkzZ2oyVAkRL46UCuqqbyHJ\ngzfg\r\n=xud5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUzlEcLiGfXzdrWq6nz1f6+BVJemEyxS8b/uk78p0T0AIhAMIO4Ka/ZrFIL+XM8R9kXVeTTGtZ18qjjBgS/krNjCaP"}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flattree_0.11.0_1532172395301_0.4708451858903402"},"_hasShrinkwrap":false},"0.11.1":{"name":"flattree","version":"0.11.1","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run lint && npm test && npm run build","build":"babel --out-dir ./lib ./src","test":"tap test/*.js --node-arg=--require --node-arg=babel-register --node-arg=--require --node-arg=babel-polyfill","lint":"eslint ./src","lint:fix":"eslint --fix ./src","coveralls":"tap test/*.js --coverage --coverage-report=text-lcov --nyc-arg=--require --nyc-arg=babel-register --nyc-arg=--require --nyc-arg=babel-polyfill | coveralls"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"keywords":["flat","flatten","large","scroll","tree"],"devDependencies":{"babel-cli":"^6.8.0","babel-core":"^6.8.0","babel-eslint":"^6.0.4","babel-plugin-transform-es3-member-expression-literals":"^6.8.0","babel-plugin-transform-es3-property-literals":"^6.8.0","babel-preset-es2015":"^6.6.0","babel-preset-es2015-loose":"^7.0.0","babel-preset-stage-0":"^6.5.0","coveralls":"^2.11.9","eslint":"^2.9.0","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.8.0","eslint-plugin-jsx-a11y":"^1.2.0","eslint-plugin-react":"^5.1.1","lodash":"^4.12.0","tap":"^5.7.1"},"nyc":{"exclude":["test/index.js"]},"gitHead":"4711d625f2b3262bf3f8243081cdc5b3bd44acec","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@0.11.1","_nodeVersion":"10.16.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-3+Rup2VS406JqWsf+eGKVvwfs7aCmquu+GIFb3KyB8/8vnlj3KCfoDUx7xjMSmolyoebEjjvXIthj1s0uC2CvA==","shasum":"5fd0be125e74eb28d3885e3f6dcfa784844cac56","tarball":"https://registry.npmjs.org/flattree/-/flattree-0.11.1.tgz","fileCount":22,"unpackedSize":57856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdqIn8CRA9TVsSAnZWagAA3dcQAI7ekfJllCIf0S+Ccofi\nhE+0JAdfSRpJtw8j+zZwJzVyCDKpF1ki9OC4HkCbheejxZPOT22GW5vgecyX\nmowcNF9ob/W5uXnPOnQBl41QDwyR9Gytqkgjd6PsSe8hqCUqo4E+tkJB2IdS\njBSkn6iWrVJ+97uj0Gm86Xm7HdlsCIICq9SMRm5UpQPLI200HQ9tLWou+TBn\nKOKEE92bLcvL4ZSMRpRC7JltZsQDgEzCK+aj2JQiT2zmaY4pWQEDHU2ixhbz\nKQSwZtWYcl7fTQ0MYEi5ZoBcP2h6VQBDNqQx6bySbpwmdWbKOgco2RD6gaBd\niMsLaZMpl2x6i8s+23hm5tknVuPX4OMvwaypFRG+AYXPTBQEw4oDH0/Sn8qG\nbwBSW8oXjOniYQuyw55tGOiwMbq0bpPV0HC3zc2cv9zLCHtDJLRCyHVnMonR\nITW42ugeKaqTMqqYlhAkHHN6ZlDznSlQabIax7fH2czIy/l7H857jgnejxEO\n9uQwvMbs2Ik3YEHUVD0kuDYqfBWpJVNdhI6Kok9zYyvEM0XdL86PEr0xwKOK\n/ymZZYwXDwKK46EmIt/N0WBMZgmMXVRvMkleO3hWEL5l3HRjq2kWBlbHcd4s\n4ZagvOJcms7hNePKwjr4YuxPc2VXD+dI13jSAn9gJvTNpQrm0yLRI4FW16jq\nHE/q\r\n=U35b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBIjZSysSilMQIKbHPezchJxHegOA1/WIu0DkVyp8OfsAiB0wzDHCAgnZC/Tk0ZA/OE6PqLPj1ZD/6ugel09OkMINQ=="}]},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flattree_0.11.1_1571326459770_0.11308038877188764"},"_hasShrinkwrap":false},"1.0.0":{"name":"flattree","version":"1.0.0","description":"Convert hierarchical tree structure to flat structure.","main":"lib/index.js","scripts":{"prepublish":"npm run eslint && npm test && npm run build","build":"babel --out-dir ./lib ./src","clean":"del .nyc_output coverage lib package-lock.json yarn.lock","eslint":"eslint ./src","coverage":"nyc --reporter=lcov --reporter=text yarn test","test":"tap test/*.js --no-timeout --node-arg=--require --node-arg=@babel/register --node-arg=--require --node-arg=core-js/stable --node-arg=--require --node-arg=regenerator-runtime/runtime"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"keywords":["flat","flatten","large","scroll","tree"],"devDependencies":{"@babel/cli":"~7.16.0","@babel/core":"~7.16.0","@babel/preset-env":"~7.16.4","@babel/register":"~7.16.0","@trendmicro/babel-config":"~1.0.2","babel-eslint":"~10.1.0","core-js":"^3.19.1","del-cli":"^4.0.1","eslint":"^7.13.0","eslint-config-trendmicro":"^2.1.0","eslint-plugin-import":"^2.25.3","eslint-plugin-jsx-a11y":"^6.5.1","eslint-plugin-react":"^7.27.1","lodash":"^4.0.0","tap":"^15.0.10"},"nyc":{"exclude":["test/index.js"]},"tap":{"check-coverage":false},"gitHead":"5db62cac0bcdaf9da387dfd1e7bada48bb0c34f2","bugs":{"url":"https://github.com/cheton/flattree/issues"},"homepage":"https://github.com/cheton/flattree#readme","_id":"flattree@1.0.0","_nodeVersion":"12.22.7","_npmVersion":"8.1.1","dist":{"integrity":"sha512-91GFDKoXdpUPwne3yRXUpxFB6bw4ys8lH3M/DmcrCHy0p2SnaD3yWUlzdhUarYS/SVVYE+sCpUdKPdsIAWkSww==","shasum":"099c0a87980ce24c69f1dc3728e54091437cebd5","tarball":"https://registry.npmjs.org/flattree/-/flattree-1.0.0.tgz","fileCount":21,"unpackedSize":54976,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGW68iZh7FOeqz5CuMtoANoe+ZK+w42HhS8mLpOW52iwIhAIgBAJQPSpLx7DA+SWF8yMBEJjTE5eziQwDhAXuQHTBq"}]},"_npmUser":{"name":"cheton","email":"cheton@gmail.com"},"directories":{},"maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flattree_1.0.0_1637504241231_0.023171210155400468"},"_hasShrinkwrap":false}},"readme":"# flattree [![CI](https://github.com/cheton/flattree/actions/workflows/node.js.yml/badge.svg?branch=master)](https://github.com/cheton/flattree/actions/workflows/node.js.yml) [![codecov](https://codecov.io/gh/cheton/flattree/branch/master/graph/badge.svg?token=O3B7N9OQ9L)](https://codecov.io/gh/cheton/flattree)\n\n[![NPM](https://nodei.co/npm/flattree.png?downloads=true&stars=true)](https://www.npmjs.com/package/flattree)\n\nConvert hierarchical tree structure to flat structure.\nWith a flat structure, it allows you to scroll a large tree easily with virtualization. \n\nCheck out [infinite-tree](https://github.com/cheton/infinite-tree) to see how it integrated with [FlatTree](https://github.com/cheton/flattree).\n\n## Installation\n\n```bash\nnpm install --save flattree\n```\n## Examples\n\nGiven a hierarchical tree structure like [this](https://github.com/cheton/flattree/blob/master/test/fixtures/tree.json), you can build a tree in any form. For example:\n\n### Flat List View\nFile: [examples/test1.js](https://github.com/cheton/flattree/blob/master/examples/tree1.js)\n```\n<root>: path=\".0\", parent=\"\", children=2, total=11, depth=0, prefix=\"0\", open=1, lastChild=1\nAlpha: path=\".0.0\", parent=\".0\", children=0, total=0, depth=1, prefix=\"00\", open=0, lastChild=0\nBravo: path=\".0.1\", parent=\".0\", children=3, total=9, depth=1, prefix=\"00\", open=1, lastChild=1\nCharlie: path=\".0.1.0\", parent=\".0.1\", children=2, total=4, depth=2, prefix=\"000\", open=1, lastChild=0\nDelta: path=\".0.1.0.0\", parent=\".0.1.0\", children=2, total=2, depth=3, prefix=\"0001\", open=1, lastChild=0\nEcho: path=\".0.1.0.0.0\", parent=\".0.1.0.0\", children=0, total=0, depth=4, prefix=\"00011\", open=0, lastChild=0\nFoxtrot: path=\".0.1.0.0.1\", parent=\".0.1.0.0\", children=0, total=0, depth=4, prefix=\"00011\", open=0, lastChild=1\nGolf: path=\".0.1.0.1\", parent=\".0.1.0\", children=0, total=0, depth=3, prefix=\"0001\", open=0, lastChild=1\nHotel: path=\".0.1.1\", parent=\".0.1\", children=1, total=2, depth=2, prefix=\"000\", open=1, lastChild=0\nIndia: path=\".0.1.1.0\", parent=\".0.1.1\", children=1, total=1, depth=3, prefix=\"0001\", open=1, lastChild=1\nJuliet: path=\".0.1.1.0.0\", parent=\".0.1.1.0\", children=0, total=0, depth=4, prefix=\"00010\", open=0, lastChild=1\nKilo: path=\".0.1.2\", parent=\".0.1\", children=0, total=0, depth=2, prefix=\"000\", open=0, lastChild=1\n```\n\n### Nested Hierarchy\nFile: [examples/test2.js](https://github.com/cheton/flattree/blob/master/examples/tree2.js)\n```\n<root> (.0)\n  ├── Alpha (.0.0)\n  └─┬ Bravo (.0.1)\n    ├─┬ Charlie (.0.1.0)\n    | ├─┬ Delta (.0.1.0.0)\n    | | ├── Echo (.0.1.0.0.0)\n    | | └── Foxtrot (.0.1.0.0.1)\n    | └── Golf (.0.1.0.1)\n    ├─┬ Hotel (.0.1.1)\n    | └─┬ India (.0.1.1.0)\n    |   └── Juliet (.0.1.1.0.0)\n    └── Kilo (.0.1.2)\n```\n\n### Single Root Node\nFile: [examples/test3.js](https://github.com/cheton/flattree/blob/master/examples/tree3.js)\n```\n- <root> (.0)\n    Alpha (.0.0)\n  - Bravo (.0.1)\n    - Charlie (.0.1.0)\n      + Delta (.0.1.0.0)\n        Golf (.0.1.0.1)\n    - Hotel (.0.1.1)\n      - India (.0.1.1.0)\n          Juliet (.0.1.1.0.0)\n      Kilo (.0.1.2)\n```\n\n### Multiple Root Nodes\nFile: [examples/test4.js](https://github.com/cheton/flattree/blob/master/examples/tree4.js)\n```\n  Alpha (.0)\n- Bravo (.1)\n  - Charlie (.1.0)\n    + Delta (.1.0.0)\n      Golf (.1.0.1)\n  - Hotel (.1.1)\n    - India (.1.1.0)\n        Juliet (.1.1.0.0)\n    Kilo (.1.2)\n```\n\n## Usage\n```js\nvar flatten = require('flattree').flatten;\n\nvar tree = { // tree can either be object or array\n    id: 'fruit',\n    label: 'Fruit',\n    children: [\n        { id: 'apple', label: 'Apple' },\n        { id: 'banana', label: 'Banana', children: [{ id: 'cherry', label: 'Cherry' }] }\n    ]\n};\n\nflatten(tree, {\n    openNodes: ['fruit', 'banana'],\n    openAllNodes: false, // Defaults to false\n    throwOnEerror: false // Defaults to false\n});\n// → [Node { id: 'fruit', ...}, Node { id: 'apple', ...}, Node { id: 'banana', ...}, Node { id: 'cherry', ...}]\n```\n\nThis demostrates how to open a node and rebuild the tree:\n```js\nvar _ = require('lodash');\nvar flatten = require('flattree').flatten;\n\n// Create the list\nvar nodes = flatten(require('./test/fixtures/tree.json'));\n// → [Node { id: 'fruit', ...}]\n\n// Find the first node with an id attribute that equals to 'fruit'\nvar index = _.findIndex(nodes, { 'id': 'fruit' });\nvar node = nodes[index];\n\nvar siblingNodes = flatten(node.children, { openNodes: ['fruit'] });\n\n// Insert an array inside another array\nnodes.splice.apply(nodes, [index + 1, 0].concat(siblingNodes));\n\nconsole.log(nodes);\n// → [Node { id: 'fruit', ...}, Node { id: 'apple', ...}, Node { id: 'banana', ...}]\n```\n\nThis demostrates how to close a node and rebuild the tree:\n```js\nvar _ = require('lodash');\nvar flatten = require('flattree').flatten;\n\n// Create the list\nvar nodes = flatten(require('./test/fixtures/tree.json'), { openAllNodes: true });\n// → [Node { id: 'fruit', ...}, Node { id: 'apple', ...}, Node { id: 'banana', ...}, Node { id: 'cherry', ...}]\n\n// Find the first node with an id attribute that equals to 'banana'\nvar index = _.findIndex(nodes, { 'id': 'banana' });\nvar node = nodes[index];\nvar deleteCount = node.state.total;\n\n// Traversing up through ancestors to subtract node.state.total\nvar p = node;\nwhile (p) {\n    p.state.total = (p.state.total - deleteCount);\n    p = p.parent;\n}\n\n// Remove elements from an array\nnodes.splice(index + 1, deleteCount);\n\nconsole.log(nodes);\n// → [Node { id: 'fruit', ...}, Node { id: 'apple', ...}, Node { id: 'banana', ...}]\n```\n\n## API\nhttps://github.com/cheton/flattree/wiki/API\n\n## License\n\nCopyright (c) 2016 Cheton Wu\n\nLicensed under the [MIT License](LICENSE).\n","maintainers":[{"name":"cheton","email":"cheton@gmail.com"}],"time":{"modified":"2022-06-18T02:00:58.979Z","created":"2016-03-24T04:06:34.967Z","0.1.0":"2016-03-24T04:06:34.967Z","0.2.0":"2016-03-25T10:36:24.601Z","0.3.0":"2016-03-27T12:21:07.948Z","0.4.0":"2016-03-27T16:14:47.669Z","0.5.0":"2016-03-28T09:02:08.580Z","0.5.1":"2016-03-28T16:36:08.508Z","0.5.2":"2016-03-29T03:08:53.472Z","0.5.3":"2016-03-30T03:59:48.769Z","0.5.4":"2016-03-30T15:59:20.235Z","0.5.5":"2016-04-01T12:04:17.077Z","0.6.0":"2016-04-02T17:29:00.021Z","0.6.1":"2016-04-02T17:46:10.539Z","0.6.2":"2016-04-03T03:05:55.526Z","0.7.0":"2016-04-03T05:40:14.664Z","0.7.1":"2016-04-03T06:23:57.724Z","0.8.0":"2016-04-03T08:18:06.184Z","0.8.1":"2016-04-03T14:33:32.289Z","0.8.2":"2016-04-06T10:40:53.330Z","0.9.0":"2016-06-02T08:31:46.589Z","0.10.0":"2016-11-28T03:06:35.070Z","0.11.0":"2018-07-21T11:26:35.416Z","0.11.1":"2019-10-17T15:34:19.922Z","1.0.0":"2021-11-21T14:17:21.379Z"},"homepage":"https://github.com/cheton/flattree#readme","repository":{"type":"git","url":"git+https://github.com/cheton/flattree.git"},"author":{"name":"Cheton Wu","email":"cheton@gmail.com"},"bugs":{"url":"https://github.com/cheton/flattree/issues"},"license":"MIT","readmeFilename":"README.md","users":{"cheton":true},"keywords":["flat","flatten","large","scroll","tree"]}