文件名称:paths2tree:从一组路径中构建一棵树
文件大小:3KB
文件格式:ZIP
更新时间:2024-08-03 09:03:23
JavaScript
将路径转换为 JS 树数据结构 低谷: var Treenode = require ( 'paths2tree' ) ( { sep : '.' } ) ; var archy = require ( 'archy' ) ; var root = new Treenode ( '.' ) ; root . push_path ( 'com' ) ; root . push_path ( 'com.google' ) ; root . push_path ( 'com.google.www' ) ; root . push_path ( 'com.google.api' ) ; root . push_path ( 'com.gmail' ) ; root . push_path ( 'com.gmail.www' ) ; root . push_path ( 'com.gmail
【文件预览】:
paths2tree-master
----package.json(328B)
----tree.js(3KB)
----README.md(2KB)