{"id":20011196,"url":"https://github.com/litten/folder2tree","last_synced_at":"2025-10-08T20:29:20.912Z","repository":{"id":19134654,"uuid":"22364426","full_name":"litten/folder2tree","owner":"litten","description":"Show your folder structure with tree nodes. 用树形节点展示文件夹结构。","archived":false,"fork":false,"pushed_at":"2014-08-14T02:53:12.000Z","size":176,"stargazers_count":30,"open_issues_count":0,"forks_count":19,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-04T20:40:58.245Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/litten.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-29T02:03:32.000Z","updated_at":"2024-11-07T08:41:45.000Z","dependencies_parsed_at":"2022-08-30T12:00:47.889Z","dependency_job_id":null,"html_url":"https://github.com/litten/folder2tree","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/litten/folder2tree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litten%2Ffolder2tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litten%2Ffolder2tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litten%2Ffolder2tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litten%2Ffolder2tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litten","download_url":"https://codeload.github.com/litten/folder2tree/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litten%2Ffolder2tree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000653,"owners_count":26082817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T07:24:44.236Z","updated_at":"2025-10-08T20:29:20.893Z","avatar_url":"https://github.com/litten.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#folder2tree\n\n用树形节点展示文件夹结构。\nShow your folder structure with tree nodes. \n### 使用 Usage:\n\n@param {Dom} 父级dom节点               \n@param {Array} 描述文件夹层级关系对象\n\n```js\nfolder2tree.init(document.getElementById(\"ctn\"), [\n\t{\n\t\t\"img\" : [\n\t\t\t\"sprite.png\",\n\t\t\t\"bg.png\"\n\t\t]\n\t},{\n\t\t\"js\": [{\n\t\t\t\"common\": [\n\t\t\t\t\"jquery.js\",{\n\t\t\t\t\t\"highcharts\": [{\n\t\t\t\t\t\t\"modules\": [\"exporting.js\"]\n\t\t\t\t\t},\n\t\t\t\t\t\"highcharts.js\"\n\t\t\t\t]}\n\t\t\t]\n\t\t},{\n\t\t\t\"index\": [\n\t\t\t\t\"mian.js\",{\n\t\t\t\t\t\"modules\": [\"mod.video.js\"]\n\t\t\t\t}\n\t\t\t]\n\t\t}]\n\t},{\n\t\t\"css\": [\n\t\t\t\"base.css\",\n\t\t\t\"index-main.css\",\n\t\t\t\"index-video.css\"\n\t\t]\n\t},\n\t\"index.html\",\n\t\"favicon.ico\"\n]);\n```\n\n### 展示 Show:\n```\n├─img\n│ ├─sprite.png\n│ └─bg.png\n├─js\n│ ├─common\n│ │ ├─jquery.js\n│ │ └─highcharts\n│ │    ├─modules\n│ │    │ └─exporting.js\n│ │    └─highcharts.js\n│ └─index\n│    ├─mian.js\n│    └─modules\n│       └─mod.video.js\n├─css\n│ ├─base.css\n│ ├─index-main.css\n│ └─index-video.css\n├─index.html\n└─favicon.ico\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitten%2Ffolder2tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitten%2Ffolder2tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitten%2Ffolder2tree/lists"}