{"id":17659766,"url":"https://github.com/raphamorim/treedata.js","last_synced_at":"2025-05-07T15:04:32.970Z","repository":{"id":14520601,"uuid":"17234621","full_name":"raphamorim/treeData.js","owner":"raphamorim","description":"A JavaScript plugin to easy create an tree data structure.","archived":false,"fork":false,"pushed_at":"2025-01-22T13:03:06.000Z","size":51,"stargazers_count":18,"open_issues_count":1,"forks_count":7,"subscribers_count":6,"default_branch":"gh-pages","last_synced_at":"2025-02-26T02:17:58.752Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://raphamorim.io/treeData.js/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"voxmedia/meme","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raphamorim.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-02-27T03:08:50.000Z","updated_at":"2025-01-22T13:02:57.000Z","dependencies_parsed_at":"2024-10-23T16:47:37.479Z","dependency_job_id":"1bcc488f-02fc-4891-9eda-b5bb254aeaa7","html_url":"https://github.com/raphamorim/treeData.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphamorim%2FtreeData.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphamorim%2FtreeData.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphamorim%2FtreeData.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphamorim%2FtreeData.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphamorim","download_url":"https://codeload.github.com/raphamorim/treeData.js/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242980782,"owners_count":20216283,"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-23T16:08:13.776Z","updated_at":"2025-03-11T05:33:17.995Z","avatar_url":"https://github.com/raphamorim.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# treeData.js\n\n\u003e A JavaScript plugin to easy create an tree data structure.\n\n## What's a Tree data structure?\n\nIn computer science, a tree is a widely used abstract data type (ADT) or data structure implementing this ADT that simulates a hierarchical tree structure, with a root value and subtrees of children, represented as a set of linked nodes.\n\nA tree data structure can be defined recursively (locally) as a collection of nodes (starting at a root node), where each node is a data structure consisting of a value, together with a list of references to nodes (the \"children\"), with the constraints that no reference is duplicated, and none points to the root.\n\n## Guide to use\n\nIt's super simple to use this javascript plugin.\n\n**1.** First you have css in the Head\n\n```html\n\u003clink rel=\"stylesheet\" href=\"treeData.min.css\" /\u003e\n```\n\n**2.** Start treeData.js in body end\n\n```html\n\u003cscript src=\"treeData.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e \n\nvar tree = {\n     father : {value : \"Tree Data Structure\", parent : \"\"},\n     a : {value : \"A\", parent : \"father\"},\n     b : {value : \"B\", parent : \"a\"},\n     c : {value : \"C\", parent : \"a\"},\n     d : {value : \"D\", parent : \"c\"},\n     e : {value : \"E\", parent : \"b\"},\n     f : {value : \"F\", parent : \"c\"},\n     g : {value : \"G\", parent : \"f\"}\n};\n\nTreeData(tree, \"#element\");\n\n\u003c/script\u003e\n\u003c/body\u003e\n```\n\n## About\n\nCreated with \u003c3 by [raphamorim](http://github.com/raphamorim)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphamorim%2Ftreedata.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphamorim%2Ftreedata.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphamorim%2Ftreedata.js/lists"}