{"versions":{"0.1.1":{"name":"@zhengxs/js.tree","version":"0.1.1","description":"快速，轻量，无依赖的树结构数据处理函数库","main":"./dist/js.tree.common.js","module":"./dist/js.tree.esm.js","types":"./dist/index.d.ts","keywords":["tree","array2tree","tree2array","parent","children","filter","map","data-structures","array to tree"],"scripts":{"build":"cross-env NODE_ENV=production rollup -c rollup.config.js","lint":"eslint src/**/*.ts","format":"prettier --write \"**/*.{js,ts,md}\"","test":"jest","cov":"jest --coverage","ci":"jest --coverage ----coverageReporters=json","api":"api-extractor run","typedoc":"typedoc","commit":"cz","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md","preversion":"npm run lint && npm test","version":"npm run changelog","postversion":"git push --follow-tags","prepublishOnly":"npm run build && npm run api"},"publishConfig":{"access":"public"},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.{ts,js}":"prettier --write","*.ts":"eslint --fix"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"optionalDependencies":{"lodash":"^4.17.15","lodash-es":"^4.17.21"},"dependencies":{"lodash":"^4.17.15","lodash-es":"^4.17.21"},"devDependencies":{"@microsoft/api-extractor":"^7.15.0","@rollup/plugin-alias":"^3.1.2","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-replace":"^2.3.4","@types/jest":"^26.0.22","@types/lodash":"^4.14.168","@types/lodash-es":"^4.17.4","@types/node":"^15.0.2","@typescript-eslint/eslint-plugin":"^4.14.0","@typescript-eslint/parser":"^4.14.0","benchmark":"^2.1.4","better-mock":"^0.3.1","builtin-modules":"^3.2.0","commitizen":"^4.2.3","commitlint":"^12.1.1","conventional-changelog-cli":"^2.1.1","cross-env":"^7.0.3","cz-conventional-changelog":"^3.3.0","eslint":"^7.18.0","eslint-config-prettier":"^8.2.0","eslint-plugin-prettier":"^3.3.1","eslint-plugin-tsdoc":"^0.2.14","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^10.5.3","lodash":"^4.17.15","performant-array-to-tree":"^1.8.1","prettier":"^2.2.1","rollup":"^2.37.0","rollup-plugin-node-externals":"^2.1.3","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","ts-jest":"^26.4.4","typedoc":"^0.20.36","typedoc-plugin-nojekyll":"^1.0.1","typescript":"^4.2.4"},"homepage":"https://github.com/zhengxs2018/js.tree","repository":{"type":"git","url":"git+https://github.com/zhengxs2018/js.tree.git"},"engines":{"node":">= 10.x"},"author":{"name":"zhengxs2018","email":"zhengxs2018@foxmail.com"},"license":"MIT","gitHead":"8d7e2399a8cf94f48dc8c0f6632400547ae90dbf","bugs":{"url":"https://github.com/zhengxs2018/js.tree/issues"},"_id":"@zhengxs/js.tree@0.1.1","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-t1O8UEi596G5ObM9bprNATz2MP+g0PjnBDkjvEvzChxy6m3S9WgGehKhNWjg1ohtBuYRygkbfCzqVUIEWh6LNw==","shasum":"77c23f87b82a5cd535fcb600e0f45766d906023c","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@zhengxs/js.tree/-/js.tree-0.1.1.tgz","fileCount":36,"unpackedSize":82428,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkgbbCRA9TVsSAnZWagAAn9oP/iueUMxI5FWhSXiVj14i\nMNsXRgmBgsCnTJ25NE8KoH+f1b0y3RJquKjW3PZ6Zd+YX921smFL2ykhfze5\nzjPfx9p0ni1keNlaBxw0+iCmdN2vgMI9tYRSq9+YaMyKQEc7IoH2x5s44rkI\nus8Jq6yGL5k9b3EDObQFAmKyeC/LWvUG/Fia4L9QTMRPGYqr4IkAaXSw0zMg\nDQgT+iYnRnfySoPGVxrPTcxgd/bYVmRkdbceFqj9ofI9sMN+5wZ5tLsAweWZ\nbNYHq3WrPtjYUTJOZrNGj2+qnbBuUiSgWxhGRgY+7mJbHkbK9jMPnR1yIVQD\n8LrCS8QjjLXx92mdyCiIM+/2GhrIfrUsc4rWd7E6J+AbYflEpWzlHIBCsSd8\n93cTrXxErCtCJkHc5yrQxlq8ibAqNznAMlGoHHCsaJJ4F7Y/SJbtFGnEBg39\nU4O0lmmcXqILst8pHS+vsHHmRF7KU8CPa0DztI4cMzX9ndn1ruJVyY+RdejZ\nf74oURvv9N8qOYGpKay1zOHGlwQmZJAkHB+rCwtn94L3bOjGC5t06fJxvQEP\n+sy/ELfx4Q2eMoEbbKUbOU39eNXZkt6mRJs/fy8l5uWz95uRM04iTvcuTlsU\nsMUFNGYNawN8FCL3Ge0a8moYisZfB8pYRnqancvJ05VPkC4fDpDMS4zaKNEt\nW2as\r\n=AtG2\r\n-----END PGP SIGNATURE-----\r\n","size":16642},"_npmUser":{"name":"anonymous","email":"zhengxs2018@foxmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"zhengxs2018@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js.tree_0.1.1_1620182747226_0.2122782302025319"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T13:49:28.437Z","contributors":[]},"0.1.2":{"name":"@zhengxs/js.tree","version":"0.1.2","description":"快速，轻量，无依赖的树结构数据处理函数库","main":"./dist/js.tree.common.js","module":"./dist/js.tree.esm.js","types":"./dist/index.d.ts","keywords":["tree","array2tree","tree2array","parent","children","filter","map","data-structures","array to tree"],"scripts":{"build":"cross-env NODE_ENV=production rollup -c rollup.config.js","lint":"eslint \"**/*.{ts,js}\"","format":"prettier --write \"**/*.{js,ts,md}\"","test":"jest","cov":"jest --coverage","ci":"jest --coverage ----coverageReporters=json","e2e":"cypress run","api":"api-extractor run","typedoc":"typedoc","commit":"cz","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md","preversion":"npm run lint && npm test","version":"npm run changelog","postversion":"git push --follow-tags","prepublishOnly":"npm run build && npm run api"},"publishConfig":{"access":"public"},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.{ts,js}":"prettier --write","*.ts":"eslint --fix"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"optionalDependencies":{"lodash":"^4.17.15","lodash-es":"^4.17.21"},"dependencies":{"lodash":"^4.17.15","lodash-es":"^4.17.21"},"devDependencies":{"@cypress/eslint-plugin-dev":"^5.1.0","@microsoft/api-extractor":"^7.15.1","@rollup/plugin-alias":"^3.1.2","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-replace":"^2.3.4","@types/jest":"^26.0.23","@types/lodash":"^4.14.168","@types/lodash-es":"^4.17.4","@types/node":"^15.0.2","@typescript-eslint/eslint-plugin":"^4.22.1","@typescript-eslint/parser":"^4.22.1","benchmark":"^2.1.4","better-mock":"^0.3.1","builtin-modules":"^3.2.0","commitizen":"^4.2.3","commitlint":"^12.1.1","conventional-changelog-cli":"^2.1.1","cross-env":"^7.0.3","cypress":"^7.2.0","cz-conventional-changelog":"^3.3.0","eslint":"^7.25.0","eslint-config-prettier":"^8.3.0","eslint-plugin-cypress":"^2.11.3","eslint-plugin-prettier":"^3.3.1","eslint-plugin-tsdoc":"^0.2.14","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^10.5.3","lodash":"^4.17.15","performant-array-to-tree":"^1.8.1","prettier":"^2.2.1","rollup":"^2.47.0","rollup-plugin-node-externals":"^2.1.3","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","ts-jest":"^26.4.4","typedoc":"^0.20.36","typedoc-plugin-nojekyll":"^1.0.1","typescript":"^4.2.4"},"homepage":"https://github.com/zhengxs2018/js.tree#readme","repository":{"type":"git","url":"git+https://github.com/zhengxs2018/js.tree.git"},"bugs":{"url":"https://github.com/zhengxs2018/js.tree/issues"},"engines":{"node":">= 10.x"},"author":{"name":"zhengxs2018","email":"zhengxs2018@foxmail.com"},"license":"MIT","gitHead":"d6666c1c60e0fe1ee190729dedeb49d75b826ce8","_id":"@zhengxs/js.tree@0.1.2","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-8m6IcYrKVeED0371oFwp1d3LNBodTQGmiNGyaZk12dk06m99r+yywi5dOgx9et3unu6iDZZ1oKkqs+mxlXFUaA==","shasum":"7a8dffd1dbc13da83ec32917787bedce75a40116","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@zhengxs/js.tree/-/js.tree-0.1.2.tgz","fileCount":36,"unpackedSize":84182,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgknMMCRA9TVsSAnZWagAA3AYP/jDbdBuXPU/H3ogaj9XA\nfg2MKWAELeoF+186oujx/6kHekZAKj84yrdPZuvRK/HpnHQBergsIxqZx42H\nN6uY/5DJJ2qhwmtwAmYreTMWHHejYLFXIyUVck7fm6aOjTIhI/qk8sUA6bF9\nHn02qd4cQ4AhLbeB+PQM49mHh0+x0UfcG/JpDPqhIK4i49+Q9EsIcwfrlKpR\n3Aaf24jUtDLJAgejDMXa9Rk9o7778cIjsxRITNd5DlGmh3euddqP9SDpPo2B\nhZUaFt14PSmbdOv9ywCHLfjKantGBcyCctQtaPK+UHJFmfi1DjCVijkyhOgV\nuGlSxGVwuFfQnn8RreHE2NiygMLgmbwB/z9pmWpGQPLoBX7nmtmS+PZaWBQI\nAaTQ2vp9pA6YD7zyJK20aJ67OoEXUdI7BeMOCM484Z/NDdBPMs9rIQ/HhTB6\nuBSmPPKyCPie1l6mJ+xDCXsmZzUetF6LVON4GRX2aFr7IIjhdlicWhr9C2zS\nMBCB3c8bpr/cbjtx3SYLE8wgoGv99Mh+uZtpM7cWR9qiZYzDW31hRgUdmHqh\n1uge+jxQKrqS45fUUKzIQ8Q+lAK+F0OzYBmyfW1WKuf2nb8/3FcaBsdVrGpx\n6cQLfIlMmhKj51CQc/5CwTdYB4wrMcI1ddgv5bfp6IrNOJD5VOUUXV2wf8K8\n0O3e\r\n=jcsG\r\n-----END PGP SIGNATURE-----\r\n","size":17011},"_npmUser":{"name":"anonymous","email":"zhengxs2018@foxmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"zhengxs2018@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js.tree_0.1.2_1620210444201_0.330090754112105"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T13:49:31.458Z","contributors":[]},"0.1.3":{"name":"@zhengxs/js.tree","version":"0.1.3","description":"快速，轻量，无依赖的树结构数据处理函数库","main":"./dist/js.tree.common.js","module":"./dist/js.tree.esm.js","types":"./dist/index.d.ts","keywords":["tree","array2tree","tree2array","parent","children","filter","map","data-structures","array to tree"],"scripts":{"build":"cross-env NODE_ENV=production rollup -c rollup.config.js","lint":"eslint \"**/*.{ts,js}\"","format":"prettier --write \"**/*.{js,ts,md}\"","test":"jest","cov":"jest --coverage","ci":"jest --coverage ----coverageReporters=json","e2e":"cypress run","api":"api-extractor run","typedoc":"typedoc","commit":"cz","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md","preversion":"npm run lint && npm test","version":"npm run changelog","postversion":"git push --follow-tags","prepublishOnly":"npm run build && npm run api"},"publishConfig":{"access":"public"},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.{ts,js}":"prettier --write","*.ts":"eslint --fix"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"optionalDependencies":{"lodash":"^4.17.15","lodash-es":"^4.17.21"},"dependencies":{"lodash":"^4.17.15","lodash-es":"^4.17.21"},"devDependencies":{"@cypress/eslint-plugin-dev":"^5.1.0","@microsoft/api-extractor":"^7.15.1","@rollup/plugin-alias":"^3.1.2","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-replace":"^2.3.4","@types/jest":"^26.0.23","@types/lodash":"^4.14.168","@types/lodash-es":"^4.17.4","@types/node":"^15.0.2","@typescript-eslint/eslint-plugin":"^4.22.1","@typescript-eslint/parser":"^4.22.1","benchmark":"^2.1.4","better-mock":"^0.3.1","builtin-modules":"^3.2.0","commitizen":"^4.2.3","commitlint":"^12.1.1","conventional-changelog-cli":"^2.1.1","cross-env":"^7.0.3","cypress":"^7.2.0","cz-conventional-changelog":"^3.3.0","eslint":"^7.25.0","eslint-config-prettier":"^8.3.0","eslint-plugin-cypress":"^2.11.3","eslint-plugin-prettier":"^3.3.1","eslint-plugin-tsdoc":"^0.2.14","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^10.5.3","lodash":"^4.17.15","performant-array-to-tree":"^1.8.1","prettier":"^2.2.1","rollup":"^2.47.0","rollup-plugin-node-externals":"^2.1.3","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","ts-jest":"^26.4.4","typedoc":"^0.20.36","typedoc-plugin-nojekyll":"^1.0.1","typescript":"^4.2.4"},"homepage":"https://github.com/zhengxs2018/js.tree#readme","repository":{"type":"git","url":"git+https://github.com/zhengxs2018/js.tree.git"},"bugs":{"url":"https://github.com/zhengxs2018/js.tree/issues"},"engines":{"node":">= 10.x"},"author":{"name":"zhengxs2018","email":"zhengxs2018@foxmail.com"},"license":"MIT","gitHead":"1e5d184a8270d5098cbf1ae62bec222416e1f0b8","_id":"@zhengxs/js.tree@0.1.3","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-2bBUDHIhYnXT06zXlNtVdJPgl6/IgVpe9Jkd2FNCxrILIAlVpq+REAaIw9w4Z9NuPAYqD+v1j1WdMx71s62YPw==","shasum":"8adc083ca64cb0b4c7228c97b76595f6e8ceef4b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@zhengxs/js.tree/-/js.tree-0.1.3.tgz","fileCount":36,"unpackedSize":84440,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmN/pCRA9TVsSAnZWagAA5tEP/17a2bmgeC4x1m1MpGvO\nR469J+ykO1+DTBaLCH7cKATFJKFFf4JH6ZtRz02PA/yWuJB97kku+qdqGTcO\nWlXJ0y3/mSH2jXeQR63UMliSUrq2SAS2zfQbj3Yv/sKOxAXtw+vGN7EW2xbA\niKvPQAeN8FzZk+Vmxagi/VGsrz/bjgznYOrOH65CAIMmOeDoB+k0ADANp6hi\nG5eyCZJpAakozp6hfbhGmFENbbCpA04xTJ4aRDWz7WUVMmyLBrl/M+zXcgRp\n6ySUETd3fx5VHsjFTOVCPws8xy0WHYKd2VScSfOE6yuHWHU0BQGxPPihVp7E\nfRqDM2o5TYsPLn3+JaqF/iLQuuwmUcw6NlFjsdoCSkFbwsbWjz0X6vM/IM0T\nawDBZq+RLhp2UUQDgNUmn4twf4mCF7kT86zDAnNWU9GZXKYHDNHtdiNnebyS\n32xm8qJx19FvGPs+UFX1EQfScFP14+5mQEJVdvi2MN502wFHrbOXqGUZ5IKq\nGeYTlQWRP2nXO0ZGqjvnBMtzZt0KINvJ2smggLOfNdwLdIDuNIKKKoQeDain\n8HvY62qD5CwhzzM5O8ofFRzUYJiM6c2id/g13z8uFcqRvaLJgzCav5FiCK7c\nOLaewSI2SKCXqGDeIzbb7VIqfu7MZAH9/SNDBz/CXi3TtLRurT0vVmIIy+pG\nE3vH\r\n=8FlB\r\n-----END PGP SIGNATURE-----\r\n","size":17066},"_npmUser":{"name":"anonymous","email":"zhengxs2018@foxmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"zhengxs2018@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js.tree_0.1.3_1620631528940_0.46397719549190897"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T13:49:34.091Z","contributors":[]},"0.2.0":{"name":"@zhengxs/js.tree","version":"0.2.0","description":"快速，轻量，无依赖的树结构数据处理函数库","main":"./dist/js.tree.common.js","module":"./dist/js.tree.esm.js","types":"./dist/index.d.ts","keywords":["tree","array2tree","tree2array","parent","children","filter","map","data-structures","array to tree"],"scripts":{"build":"cross-env NODE_ENV=production rollup -c rollup.config.js","lint":"eslint \"**/*.{ts,js}\"","format":"prettier --write \"**/*.{js,ts,md}\"","test":"jest","cov":"jest --coverage","ci":"jest --coverage ----coverageReporters=json","e2e":"cypress run","api":"api-extractor run","typedoc":"typedoc","commit":"cz","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md","preversion":"npm run lint && npm test","version":"npm run changelog","postversion":"git push --follow-tags","prepublishOnly":"npm run build && npm run api"},"publishConfig":{"access":"public"},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.{ts,js}":"prettier --write","*.ts":"eslint --fix"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"optionalDependencies":{"lodash":"^4.17.15","lodash-es":"^4.17.21"},"dependencies":{"lodash":"^4.17.15","lodash-es":"^4.17.21"},"devDependencies":{"@cypress/eslint-plugin-dev":"^5.1.0","@microsoft/api-extractor":"^7.15.1","@rollup/plugin-alias":"^3.1.2","@rollup/plugin-commonjs":"^18.1.0","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-replace":"^2.3.4","@types/jest":"^26.0.23","@types/lodash":"^4.14.168","@types/lodash-es":"^4.17.4","@types/node":"^15.0.2","@typescript-eslint/eslint-plugin":"^4.22.1","@typescript-eslint/parser":"^4.22.1","benchmark":"^2.1.4","better-mock":"^0.3.1","builtin-modules":"^3.2.0","commitizen":"^4.2.3","commitlint":"^12.1.1","conventional-changelog-cli":"^2.1.1","cross-env":"^7.0.3","cypress":"^7.2.0","cz-conventional-changelog":"^3.3.0","eslint":"^7.25.0","eslint-config-prettier":"^8.3.0","eslint-plugin-cypress":"^2.11.3","eslint-plugin-prettier":"^3.3.1","eslint-plugin-tsdoc":"^0.2.14","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^10.5.3","lodash":"^4.17.15","performant-array-to-tree":"^1.8.1","prettier":"^2.2.1","rollup":"^2.47.0","rollup-plugin-node-externals":"^2.1.3","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","ts-jest":"^26.4.4","typedoc":"^0.20.36","typedoc-plugin-nojekyll":"^1.0.1","typescript":"^4.2.4"},"homepage":"https://github.com/zhengxs2018/js.tree#readme","repository":{"type":"git","url":"git+https://github.com/zhengxs2018/js.tree.git"},"bugs":{"url":"https://github.com/zhengxs2018/js.tree/issues"},"engines":{"node":">= 10.x"},"author":{"name":"zhengxs2018","email":"zhengxs2018@foxmail.com"},"license":"MIT","gitHead":"2183811a1c89d9dd0dd4ac0f8f679bb239e9b1a9","_id":"@zhengxs/js.tree@0.2.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Oxsfbyoxn++Yh+5NkYJ3fWejQGjgeGbHu8dlSo4eNk8XQcDSVJYq/dUo4Y4UestNYYQyPK5LfgUAwRM9HFMRJg==","shasum":"ff0f315cdf0ecdccb36bf1192707c49bf30b4b5a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@zhengxs/js.tree/-/js.tree-0.2.0.tgz","fileCount":40,"unpackedSize":95927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpH97CRA9TVsSAnZWagAAj2YP/32zqqGVgP1M2R6UfAl2\nZw318TsmkiqLIiU12hybi7carU1UcAtbcj9brk9ZYQLbMLq4jFLMBS7sXYwG\nlCHRZurBqxSNNWVJXX9T+X6OcDmmReC4k+tc/1m5PWfBA8RBZNjY/TYP/v6t\nBt+KhLL+5WgPDlqN0OT0igB3k3gS9q+tR00Ha5zfF/SKASXr3pzPIc2gGnP8\nbDTGkLR+aLKve7wiUyg7Vu6T+TCLd0xHtvzZJMcb2mdtFBMJnItLdkyUuYAn\nSYmACO1OUYsIeSA3wcy7NhoE3KR8EdkrBKUwCr9PH4b20QHirRTH11yVdK29\nA9d2yOq33JcUiK1pBcy2mzuFxUU3izIJW+1zDhursi52d4WSXerhd+ZtUSFO\nYaCLXuN+hnjUt05vFG/xP4gmJlB3NDYQZoCHX9vD2s0mefGDBURwz7qFg0JA\nNPLLyZ4ojdifCpWyNIeOk+wmr0i58zFUFIerhWciJg5ySIjH85Sa8x0xekWD\nsTXw9VD5INodf3WhCUk1rJyLZyGaoQNFNv9s1oBLa460GC93AF2C8tNUHigs\nGeSAHPUrsLq+K+/weWYiFt4CBeDdhYjtLzUp9On1H27t68VPcWCH6WwlS+OR\nSpHZMPlRUlmYiWrrnIa2qYUhQMfgdYSCqUWiDI+1uf/q9gFfB64YyDVXE0Ko\nji05\r\n=oiTA\r\n-----END PGP SIGNATURE-----\r\n","size":17787},"_npmUser":{"name":"anonymous","email":"zhengxs2018@foxmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"zhengxs2018@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js.tree_0.2.0_1621393274735_0.9358787743757326"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T13:49:37.337Z","contributors":[]},"0.3.0":{"name":"@zhengxs/js.tree","version":"0.3.0","description":"快速，轻量，无依赖的树结构数据处理函数库","main":"./dist/js.tree.common.js","module":"./dist/js.tree.esm.js","types":"./dist/index.d.ts","keywords":["tree","array2tree","tree2array","parent","children","filter","map","data-structures","array to tree"],"scripts":{"build":"cross-env NODE_ENV=production rollup -c rollup.config.js","lint":"eslint \"**/*.{ts,js}\"","format":"prettier --write \"**/*.{js,ts,md}\"","test":"jest","cov":"jest --coverage","ci":"jest --coverage ----coverageReporters=json","e2e":"cypress run","api":"api-extractor run","typedoc":"typedoc","commit":"cz","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md","preversion":"npm run lint && npm test","version":"npm run changelog","postversion":"git push --follow-tags","prepublishOnly":"npm run build && npm run api"},"publishConfig":{"access":"public"},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.{ts,js}":"prettier --write","*.ts":"eslint --fix"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"optionalDependencies":{"lodash":"^4.17.15","lodash-es":"^4.17.21"},"dependencies":{"lodash":"^4.17.15","lodash-es":"^4.17.21"},"devDependencies":{"@microsoft/api-extractor":"^7.15.2","@rollup/plugin-alias":"^3.1.2","@rollup/plugin-commonjs":"^19.0.0","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-replace":"^2.4.2","@types/jest":"^26.0.23","@types/lodash":"^4.14.169","@types/lodash-es":"^4.17.4","@types/node":"^15.3.0","@typescript-eslint/eslint-plugin":"^4.24.0","@typescript-eslint/parser":"^4.24.0","benchmark":"^2.1.4","better-mock":"^0.3.1","builtin-modules":"^3.2.0","commitizen":"^4.2.4","commitlint":"^12.1.4","conventional-changelog-cli":"^2.1.1","cross-env":"^7.0.3","cypress":"^7.2.0","cz-conventional-changelog":"^3.3.0","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-cypress":"^2.11.3","eslint-plugin-prettier":"^3.4.0","eslint-plugin-tsdoc":"^0.2.14","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^11.0.0","lodash":"^4.17.15","performant-array-to-tree":"^1.8.1","prettier":"^2.3.0","rollup":"^2.48.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","ts-jest":"^26.5.6","typedoc":"^0.20.36","typedoc-plugin-nojekyll":"^1.0.1","typescript":"^4.2.4"},"homepage":"https://github.com/zhengxs2018/js.tree#readme","repository":{"type":"git","url":"git+https://github.com/zhengxs2018/js.tree.git"},"bugs":{"url":"https://github.com/zhengxs2018/js.tree/issues"},"engines":{"node":">= 10.x"},"author":{"name":"zhengxs2018","email":"zhengxs2018@foxmail.com"},"license":"MIT","gitHead":"3d56a2227f1f57b8b2bb99f4ae2bfd39e235a801","_id":"@zhengxs/js.tree@0.3.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-TLhO5RnH8rizGpiawM7u+OQ8fyXukoun7ZhS7D3dPRJkVKm/i5hCgPbHyoyET3gpWYLFE/UdvlBDoeTS9jKy1w==","shasum":"8b7a3665238ab44363d587b4fd8d7a3c1a77be0f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@zhengxs/js.tree/-/js.tree-0.3.0.tgz","fileCount":40,"unpackedSize":96646,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgxqXCCRA9TVsSAnZWagAAuyAP/j7FVbMZb65xNhw5rS03\nEEesVcoTcHXsGxUv2jspQS6XJW3maX5g33Xst7Q7Rx9LU431BUpkcAg0xX0Q\nOrDP7BvbG/NZg1vVBTp4UFtM0VcghoXiSxrAZR2O5659sDrQ3V7JNRH1meFe\ndyg9bXqB01DpSN4fBB8GLFyfQS/CVskFnK8mpUh1prPHY91zpeXBbstYLZCo\naYW7NVz8S/BN06tQr19ceEgVTOzCV1X8qxKB763wNwaZcxyvjIrhefUsZBj9\nefN0z1qVnumX4kEo2UlmScQUTVEc2192EBboBgXTRZaMZoxpkBJWjb6jS7O/\nOeuBm0wMCxrtDkzjryGxl9RnckE6qY+ROKZ0VB1+h5GqzoCc+IEaKuXnFCgX\nMEcIwPyB1UfZYjX1UXoMRoNsVgOlCiz7635s4uXnQkFbCgYkhuNnpS7NTDxr\nKF0nL2vdTs0ExwJdDXPoiFeZ0NNMD3bCcGmMt/ePqwpNcDSMv27lmIXboTKr\n7O2PFxIc9hjxWTRcwbt3AQQGPD7dkqFUN6YjqpEVYCKMlvf+DYeLLGB648Wm\njNWi7+O3ppJnS5gP1apLBaj5RAi4cqreIjBr3tO/SgWJiXrstAKkuxyQSIOB\nTJonjWCdEhqgRTQqi4ofqK40I7Lb3iSIWbEnhyZgRTPl3f7dBw6JbhT4AWIt\nJkGJ\r\n=+T78\r\n-----END PGP SIGNATURE-----\r\n","size":17854},"_npmUser":{"name":"anonymous","email":"zhengxs2018@foxmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"zhengxs2018@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js.tree_0.3.0_1623631298643_0.4327519119097767"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T13:49:39.717Z","contributors":[]},"0.4.0":{"name":"@zhengxs/js.tree","version":"0.4.0","description":"快速，轻量，无依赖的树结构数据处理函数库","main":"./dist/js.tree.common.js","module":"./dist/js.tree.esm.js","types":"./dist/index.d.ts","keywords":["tree","array2tree","tree2array","parent","children","filter","map","data-structures","array to tree"],"scripts":{"build":"cross-env NODE_ENV=production rollup -c rollup.config.js","lint":"eslint \"**/*.{ts,js}\"","format":"prettier --write \"**/*.{js,ts,md}\"","test":"jest","cov":"jest --coverage","ci":"jest --coverage ----coverageReporters=json","e2e":"cypress run","api":"api-extractor run","commit":"cz","doc":"typedoc","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md","preversion":"npm run lint && npm test","version":"npm run changelog","postversion":"git push --follow-tags","prepublishOnly":"npm run build && npm run api","postpublish":"typedoc && gh-pages -d ./dist-doc -t"},"publishConfig":{"access":"public"},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.{ts,js}":"prettier --write","*.ts":"eslint --fix"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"optionalDependencies":{"lodash":"^4.17.15","lodash-es":"^4.17.21"},"dependencies":{"lodash":"^4.17.15","lodash-es":"^4.17.21"},"devDependencies":{"@microsoft/api-extractor":"^7.15.2","@rollup/plugin-alias":"^3.1.2","@rollup/plugin-commonjs":"^19.0.0","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-replace":"^2.4.2","@types/jest":"^26.0.23","@types/lodash":"^4.14.169","@types/lodash-es":"^4.17.4","@types/node":"^15.3.0","@typescript-eslint/eslint-plugin":"^4.24.0","@typescript-eslint/parser":"^4.24.0","benchmark":"^2.1.4","better-mock":"^0.3.1","builtin-modules":"^3.2.0","commitizen":"^4.2.4","commitlint":"^12.1.4","conventional-changelog-cli":"^2.1.1","cross-env":"^7.0.3","cypress":"^7.2.0","cz-conventional-changelog":"^3.3.0","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-cypress":"^2.11.3","eslint-plugin-prettier":"^3.4.0","eslint-plugin-tsdoc":"^0.2.14","gh-pages":"^3.2.0","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^11.0.0","lodash":"^4.17.15","performant-array-to-tree":"^1.8.1","prettier":"^2.3.0","rollup":"^2.48.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","ts-jest":"^26.5.6","typedoc":"^0.20.36","typedoc-plugin-nojekyll":"^1.0.1","typescript":"^4.2.4"},"homepage":"https://github.com/zhengxs2018/js.tree#readme","repository":{"type":"git","url":"git+https://github.com/zhengxs2018/js.tree.git"},"bugs":{"url":"https://github.com/zhengxs2018/js.tree/issues"},"engines":{"node":">= 10.x"},"author":{"name":"zhengxs2018","email":"zhengxs2018@foxmail.com"},"license":"MIT","gitHead":"ee863c6cab650fe8e25ea8403477f40d9de4618d","_id":"@zhengxs/js.tree@0.4.0","_nodeVersion":"14.17.1","_npmVersion":"6.14.13","dist":{"integrity":"sha512-zHSzhujgX7Z+cB8c8OcEpmPUt4q6J/SguQplExNVrMLp4609MsQmTlX6sQjrnksvF4PJgctEWLRIyXY0bw7OUQ==","shasum":"c6dad323aabf585f4c724b4c4408267e57094cfc","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@zhengxs/js.tree/-/js.tree-0.4.0.tgz","fileCount":36,"unpackedSize":124178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg69sQCRA9TVsSAnZWagAA7uYP/1B8SPmnzKe/CWG6XwJX\nShkWnbqoPVcyFDRambaWp3oWXgox7zeonPefdTgW2TCISXWbq+bxArIpXKmn\nJD7tZg/e/3rxMzHiHaskybor2laP+Ka4mNII0WuSc9GcCjWWIiKDaRp3Ar6o\n02BTx8NOvLSCJpwhFKfCUd/Q5tEeohpbeeBZQb47x2HPjbDfyotb3MfUnHVU\nAo/IRFE5g3pbCnsWVUf2E5b4QTytSu9FUvwPiYtLf2o3ge02hC1KbN3tlFw6\nhrjDMBe5QTO8UEyjXQrQ3tGCYKaUn82+BIvUsBD3NvsSCPL9q9Lu8l+eicP8\n3kCL66v7PJti+Xma5YKgcsifz73eaGhg7lE8jMgzwk54Y7q5CGVkCYjj7/SI\nK6Y3GLJSRDEgF20DecNtDXGt6zzik4XwX6tf/fH0SkqKALZ0QgTXmOIymBZS\nK4Wbu2Q2VIGB2eCRpBd0sLKwlkZLkExgSAkst0gejTmuSrDcuPFVYyEvpbLF\nj6dXUD3bXhXYXjwODYz+YQ4JGG/KfJcPKWcJwhP4D92Mn+ZhDAAkafej2X68\nKG3CciPAdqRJLSBH4TgTdmskXtxQL9BIwb+kDo/7XaaF88IHbQ34S8zEEWFu\nKcaWsRKqE9Rtg5pQBgeUujYvb1m435I9XIo10MV0ckznpjO/7oPP6xiJqeaO\nZ43O\r\n=dYrd\r\n-----END PGP SIGNATURE-----\r\n","size":19409},"_npmUser":{"name":"anonymous","email":"zhengxs2018@foxmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"zhengxs2018@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js.tree_0.4.0_1626069776199_0.2253201529303619"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T13:49:43.620Z","contributors":[]},"0.5.0":{"name":"@zhengxs/js.tree","version":"0.5.0","description":"快速，轻量，无依赖的树结构数据处理函数库","main":"./dist/js.tree.common.js","module":"./dist/js.tree.esm.js","types":"./dist/index.d.ts","keywords":["tree","array2tree","tree2array","parent","children","filter","map","data-structures","array to tree"],"scripts":{"build":"cross-env NODE_ENV=production rollup -c rollup.config.js","lint":"eslint \"**/*.{ts,js}\"","format":"prettier --write \"**/*.{js,ts,md}\"","test":"jest","cov":"jest --coverage","ci":"jest --coverage ----coverageReporters=json","e2e":"cypress run","api":"api-extractor run","commit":"cz","doc":"typedoc","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md","preversion":"npm run lint && npm test","version":"npm run changelog","postversion":"git push --follow-tags","postpublish":"typedoc && gh-pages -d ./dist-doc -t"},"publishConfig":{"access":"public"},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.{ts,js}":"prettier --write","*.ts":"eslint --fix"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"optionalDependencies":{"lodash":"^4.17.15","lodash-es":"^4.17.21"},"dependencies":{"lodash":"^4.17.15","lodash-es":"^4.17.21"},"devDependencies":{"@microsoft/api-extractor":"^7.15.2","@rollup/plugin-alias":"^3.1.2","@rollup/plugin-commonjs":"^19.0.0","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-replace":"^2.4.2","@types/jest":"^26.0.23","@types/lodash":"^4.14.169","@types/lodash-es":"^4.17.4","@types/node":"^15.3.0","@typescript-eslint/eslint-plugin":"^4.24.0","@typescript-eslint/parser":"^4.24.0","benchmark":"^2.1.4","better-mock":"^0.3.1","builtin-modules":"^3.2.0","commitizen":"^4.2.4","commitlint":"^12.1.4","conventional-changelog-cli":"^2.1.1","cross-env":"^7.0.3","cypress":"^7.2.0","cz-conventional-changelog":"^3.3.0","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-cypress":"^2.11.3","eslint-plugin-prettier":"^3.4.0","eslint-plugin-tsdoc":"^0.2.14","gh-pages":"^3.2.0","husky":"^6.0.0","jest":"^26.6.3","lint-staged":"^11.0.0","lodash":"^4.17.15","performant-array-to-tree":"^1.8.1","prettier":"^2.3.0","rollup":"^2.48.0","rollup-plugin-node-externals":"^2.2.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","ts-jest":"^26.5.6","typedoc":"^0.20.36","typedoc-plugin-nojekyll":"^1.0.1","typescript":"^4.2.4"},"homepage":"https://github.com/zhengxs2018/js.tree#readme","repository":{"type":"git","url":"git+https://github.com/zhengxs2018/js.tree.git"},"bugs":{"url":"https://github.com/zhengxs2018/js.tree/issues"},"engines":{"node":">= 10.x"},"author":{"name":"zhengxs2018","email":"zhengxs2018@foxmail.com"},"license":"MIT","gitHead":"f12fd7248f91f978c8e04df0e7e4d89fafd29314","_id":"@zhengxs/js.tree@0.5.0","_nodeVersion":"14.19.1","_npmVersion":"6.14.16","dist":{"integrity":"sha512-MRQMQz0mQy+Y9kynIo5f6/+McEwm4Ug8HBffTHlnD8MYffAaBI9bZc26Oyiuh/Lr2RgGTTxZNEvObPuifOwahw==","shasum":"aacd8abff73713b2e53ec4355e7cd1bc6392f826","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@zhengxs/js.tree/-/js.tree-0.5.0.tgz","fileCount":38,"unpackedSize":137837,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDmscxObOjYcoHLQURYEna12Y10wUS/kOwUCSdpcrWYoAiEAy9ZNDfaIugennpL8hiXFCgZ4sGNJkBh66lS9MLVCZNI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4gg2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6Ow//T8kaE7lENtctmp+TYVNfDDPQQ2FhCZwpnSX4uEb5N+VO0DUc\r\n6M1DBAR572u/7lrtbiHjhZhodj8+Og0ZEIjwHLj4Q7BQQ+lchYx5QdftLby/\r\nwiSi0L3XrERQDByoWYFos6xB7LywUQ4zhQpVvX3uFU4pjtKyjkUC9ZdsH5Yk\r\n+KvkGGP4MqQ7lPb6dRD627iGxuxOmDui0AzAI+oTj2C033kpZa4hzt39NzrN\r\nkC65/Q4pt/q7O6pYOXbMT10x+dCYuH/YyGSQ4Ga8ze18xxMjzY0EHypQbqao\r\n+UbBWmeabodJkN1TISIQ70Xq2g1fbtbhCttX2Uk/oHsyMQJE237R4CQjIMn3\r\n7gEP+dYZdGLH4kWmPesuKL5f7A2B+BDW94QQFV5vsV6L1wOH/+6WWfw5lqjH\r\nKV2FdEsolSlCOosjGj5F/GRZ4a9P9g3XRm4laB62xw5bv9fQ5eKVCl4XQVL+\r\n4ULr/KrS4D+dMuK7ubaMziRMHY5HSnPDobZjTPjcSvpAxH4zsrqtGDDUSj91\r\nOnPqcEWq08jOvbflblykY7Z258b+sx5CzPjIGCRkDpx0ZSDHyQKyjUW2apOp\r\nxkJliTYi2ugW6mVp0z5lb8DVt8MaBDbHyWTG7PxN9MFXIpZVdGhVWfum761i\r\nA2rCcnuPVUdmHxniM4G58c7NPu6xHs3+f4I=\r\n=O+CS\r\n-----END PGP SIGNATURE-----\r\n","size":21106},"_npmUser":{"name":"anonymous","email":"zhengxs2018@foxmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"zhengxs2018@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js.tree_0.5.0_1658980405947_0.7639850711222995"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-28T03:53:32.323Z","contributors":[]}},"dist-tags":{"latest":"0.5.0"},"name":"@zhengxs/js.tree","time":{"created":"2022-01-27T23:19:04.500Z","modified":"2023-08-07T08:50:48.580Z","0.1.1":"2021-05-05T02:45:47.576Z","0.1.2":"2021-05-05T10:27:24.342Z","0.1.3":"2021-05-10T07:25:29.084Z","0.2.0":"2021-05-19T03:01:14.888Z","0.3.0":"2021-06-14T00:41:38.855Z","0.4.0":"2021-07-12T06:02:56.324Z","0.5.0":"2022-07-28T03:53:26.111Z"},"readme":"<div align=\"center\">\n  <h1>\n   <br/>\n    <br/>\n    👍\n    <br />\n    @zhengxs/js.tree\n    <br />\n    <br />\n  </h1>\n  <sup>\n    <br />\n    <br />\n    <a href=\"https://www.typescriptlang.org\">\n      <img src=\"https://img.shields.io/badge/lang-typescript-informational?style=flat\" alt=\"TypeScript\" />\n    </a>\n    <a href=\"https://github.com/prettier/prettier\">\n      <img src=\"https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square\" alt=\"code style: prettier\" />\n    </a>\n    <a href=\"https://www.npmjs.com/package/@zhengxs/js.tree\">\n      <img src=\"https://img.shields.io/npm/v/@zhengxs/js.tree.svg\" alt=\"npm package\" />\n    </a>\n    <a href=\"https://www.npmjs.com/package/@zhengxs/js.tree\">\n      <img src=\"https://img.shields.io/npm/dt/@zhengxs/js.tree.svg\" alt=\"npm downloads\" />\n    </a>\n    <a href=\"https://www.npmjs.com/package/@zhengxs/js.tree\">\n      <img src=\"https://img.shields.io/npm/dm/@zhengxs/js.tree.svg\" alt=\"npm downloads\" />\n    </a>\n    <a href=\"https://unpkg.com/@zhengxs/js.tree/dist/js.tree.min.js\">\n      <img src=\"https://img.badgesize.io/https:/unpkg.com/@zhengxs/js.tree/dist/js.tree.min.js?compression=gzip&style=flat\" alt=\"Gzip Size\" />\n    </a>\n    <a href=\"https://david-dm.org/zhengxs2018/js.tree\">\n      <img src=\"https://img.shields.io/david/zhengxs2018/js.tree\" alt=\"Dependency Status\" />\n    </a>\n    <a href=\"https://david-dm.org/zhengxs2018/js.tree?type=dev\">\n      <img src=\"https://img.shields.io/david/dev/zhengxs2018/js.tree\" alt=\"DevDependency Status\" />\n    </a>\n    <a href=\"https://dashboard.cypress.io/projects/dtcor7/runs\">\n      <img src=\"https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/simple/dtcor7/main&style=flat&logo=cypress\" alt=\"Cypress\" />\n    </a>\n    <a href=\"https://codecov.io/gh/zhengxs2018/js.tree\">\n      <img src=\"https://codecov.io/gh/zhengxs2018/js.tree/branch/main/graph/badge.svg\" alt=\"codecov\" />\n    </a>\n    <a href=\"https://github.com/zhengxs2018/js.tree/actions/workflows/tests.yaml\">\n      <img src=\"https://github.com/zhengxs2018/js.tree/actions/workflows/tests.yaml/badge.svg\" alt=\"Github action\" />\n    </a>\n    <a href=\"#typescript\">\n      <img src=\"https://img.shields.io/badge/typings-included-brightgreen.svg?style=flat\" alt=\"Typings\" />\n    </a>\n    <a href=\"#License\">\n      <img src=\"https://img.shields.io/npm/l/@zhengxs/js.tree.svg?style=flat-square\" alt=\"License\" />\n    </a>\n    <br />\n    <br />\n  </sup>\n  <div>快速，轻量，无依赖的树结构数据处理函数库。</div>\n  <br />\n  <br />\n  <br />\n</div>\n\n---\n\n- 一个循环解决行转树的问题\n- 转树除了添加 `children` 属性，不会修改任何数据\n- 支持任意关系字段，如：非 id，parentId, children 字段支持\n- 支持接管插入行为，如：自定义插入顺序\n- 支持动态导出树节点\n- 内置 `filter/map` 函数\n\n## 快速开始\n\n[国内镜像](https://gitee.com/zhengxs2018/js.tree)\n\n### 文档\n\n- 转换\n  - [toTree 行转树](./docs/transform/toTree.md)\n  - [toRows 树转行](./docs/transform/toRows.md)\n- 操作\n  - [map 修改内容](./docs/operators/map.md)\n  - [each 循环内容](./docs/operators/each.md)\n  - [filter 过滤内容](./docs/operators/filter.md)\n  - [exclude 排除内容](./docs/operators/exclude.md)\n  - [repairWith 修复关系](./docs/operators/repairWith.md)\n- [二次封装](./docs/advanced/custom.md)\n\n### 安装\n\n```shell\n$ npm i @zhengxs/js.tree --save\n```\n\n### 使用\n\n```js\nimport { toTree } from '@zhengxs/js.tree'\n\ntoTree([\n  { id: 10000, parentId: null, title: '标题 1' },\n  { id: 20000, parentId: null, title: '标题 2' },\n  { id: 11000, parentId: 10000, title: '标题 1-1' },\n])\n// ->\n// [\n//   {\n//     id: 10000,\n//     parentId: null,\n//     title: '标题 1',\n//     children: [\n//       { id: 11000, parentId: 10000, title: '标题 1-1', children: [] }\n//     ]\n//   },\n//   { id: 20000, parentId: null, title: '标题 2', children: [] },\n// ]\n```\n\n支持任意关系字段的数据\n\n```js\nimport { toTree, ROOT_ID } from '@zhengxs/js.tree'\n\nconst data = [\n  { uid: 10000, pid: null, title: '标题 1', sort: 1 },\n  { uid: 20000, pid: null, title: '标题 2', sort: 2 },\n  { uid: 11000, pid: 10000, title: '标题 1-1', sort: 3 },\n]\n\nconst result = toTree(data, {\n  // 如果 parentId 为 null 或 undefined 会合并一起\n  // 使用 ROOT_ID 作为 key 保存\n  // 支持函数，动态返回\n  root: ROOT_ID,\n\n  // lodash 版本，支持 path, 如: nested.id\n  idKey: 'uid', // 可选，默认: id\n\n  // lodash 版本，支持 path, 如: nested.parentId\n  parentKey: 'pid', // 可选，默认：parentId\n\n  // 挂载子级的属性名称，默认：children\n  childrenKey: 'items',\n\n  // 数据添加进 children 数组前的处理，可选\n  transform(data) {\n    // 通过浅拷贝避免修改原始数据\n    // 可以在这里动态添加属性\n    return { ...data, checked: false }\n  },\n\n  // 接管插入行为\n  insert(siblings, node) {\n    // ps: 任意层级的数据都是这样处理的\n    const index = siblings.findIndex((n) => n.sort > node.sort)\n\n    if (index === -1) {\n      siblings.push(node)\n    } else {\n      siblings.splice(index, 0, node)\n    }\n  },\n})\n// ->\n// [\n//   {\n//     uid: 10000,\n//     pid: null,\n//     title: '标题 1',\n//     sort: 1,\n//     checked: false,\n//     items: [\n//       {\n//         uid: 11000,\n//         pid: 10000,\n//         title: '标题 1-1',\n//         sort: 3,\n//         checked: false,\n//         items: []\n//       }\n//     ]\n//   },\n//   {\n//     uid: 20000,\n//     pid: null,\n//     title: '标题 2',\n//     sort: 2,\n//     checked: false,\n//     items: []\n//   }\n// ]\n```\n\n[Try in runkit](https://npm.runkit.com/@zhengxs/js.tree)\n\n## TypeScript\n\n内置 ts 类型\n\n```ts\nimport { toTree } from '@zhengxs/js.tree'\n\n// 转换前的数据\ntype MenuItem = {\n  id: string\n  parentId: string\n  text: string\n  url?: string\n}\n\n// 转换后的数据\ninterface Nav extends MenuItem {\n  items: Nav[]\n}\n\n// 如果修改了 childrenKey\n// 为了让类型提示正确，可以传入正确的类型\ntoTree<Nav>(source, {\n  childrenKey: 'items',\n})\n```\n\n## 对不同构建版本的解释\n\n> umd 模块使用 `es5`，其他版本使用的是 `es2015`。\n\n在包的 dist/ 目录你将会找到很多不同的构建版本，这里列出了它们之间的差别：\n\n|                     | UMD            | CommonJS                 | ES Module                |\n| ------------------- | -------------- | ------------------------ | ------------------------ |\n| 无依赖              | js.tree.js     | js.tree.common.js        | js.tree.esm.js           |\n| 无依赖(生产环境)    | js.tree.min.js |                          |                          |\n| 包含 lodash 模块    |                | js.tree.common.lodash.js | js.tree.esm.lodash.js    |\n| 包含 lodash-es 模块 |                |                          | js.tree.esm.lodash-es.js |\n\n除环境导致的，为了减少包体积，和项目共享 `lodash` 模块。\n\n但不是所有项目都会引入，为了避免这种情况，默认的都是不带的。\n\n## 其他\n\n- [tiny-tree](https://github.com/zhengxs2018/tiny-tree)\n\n## License\n\n- MIT","users":{}}