Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yjkzhuzhu/js-tree
树型结构的一系列操作方法
https://github.com/yjkzhuzhu/js-tree
Last synced: 3 days ago
JSON representation
树型结构的一系列操作方法
- Host: GitHub
- URL: https://github.com/yjkzhuzhu/js-tree
- Owner: YJKZHUZHU
- License: mit
- Created: 2024-04-16T08:09:59.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-16T09:01:08.000Z (7 months ago)
- Last Synced: 2024-05-04T00:15:37.625Z (7 months ago)
- Language: TypeScript
- Size: 543 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [js-tree](https://artifactory.sf-express.com/ui/packages?name=js-tree&type=packages)
- 提供一系列树形结构的操作方法
## Options
- transformTree-转化
- addLevelToTree-添加层级
- treeForEach-遍历树
- treeToList-树转列表
- listToTree-列表转树
- findTreeItem-查找节点
- filterTree-过滤节点
- treeFindPath-获取树节点路径## Development
```bash
# install dependencies
$ npm install js-tree#or
$ pnpm install js-tree
#or
$ yarn add js-tree```
## LICENSE
MIT