{"id":16386320,"url":"https://github.com/tmcw/treeui","last_synced_at":"2025-07-17T17:33:04.052Z","repository":{"id":15491226,"uuid":"18225017","full_name":"tmcw/treeui","owner":"tmcw","description":"A simple collapsible tree ui, for file selectors and the like.","archived":false,"fork":false,"pushed_at":"2017-04-10T21:33:27.000Z","size":4,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-10T12:53:16.138Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/tmcw.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-03-28T20:08:16.000Z","updated_at":"2025-03-24T15:42:43.000Z","dependencies_parsed_at":"2022-07-20T21:32:22.497Z","dependency_job_id":null,"html_url":"https://github.com/tmcw/treeui","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tmcw/treeui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcw%2Ftreeui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcw%2Ftreeui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcw%2Ftreeui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcw%2Ftreeui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmcw","download_url":"https://codeload.github.com/tmcw/treeui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcw%2Ftreeui/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265636856,"owners_count":23802574,"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","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-10-11T04:16:55.615Z","updated_at":"2025-07-17T17:33:04.006Z","avatar_url":"https://github.com/tmcw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# treeui\n\nA simple collapsible tree ui, for file selectors and the like.\n\n## install\n\n    npm install --save treeui\n\n## example\n\n[Live example on requirebin](http://requirebin.com/?gist=tmcw/9842067)\n\n```js\nvar treeui = require('treeui');\n\ntreeui(request)\n    .onclick(function(level) {\n        console.log(level);\n    })\n    .appendTo(document.body);\n\nfunction request(tree, callback) {\n    callback(null, [1 + tree, 2 + tree, 3 + tree]);\n}\n```\n\n## api\n\n### treeui(request)\n\nRequest is a function that takes `(level, callback)` and calls callback\nwith `(err, results)`, where results is an array.\n\n### onclick(callback)\n\nCall callback with the tree level of clicked items\n\n## appendTo(elem)\n\nAppend the UI to a given DOM element.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmcw%2Ftreeui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmcw%2Ftreeui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmcw%2Ftreeui/lists"}