{"id":20268386,"url":"https://github.com/zuck/node-tree","last_synced_at":"2026-05-11T15:35:52.317Z","repository":{"id":227936416,"uuid":"641121186","full_name":"zuck/node-tree","owner":"zuck","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-16T16:28:46.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T22:14:45.906Z","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/zuck.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}},"created_at":"2023-05-15T20:30:51.000Z","updated_at":"2023-05-16T16:15:05.000Z","dependencies_parsed_at":"2024-03-15T21:59:53.585Z","dependency_job_id":"c7d8003f-6748-4ef7-86a1-7f8bba24b10b","html_url":"https://github.com/zuck/node-tree","commit_stats":null,"previous_names":["zuck/node-tree"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zuck/node-tree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuck%2Fnode-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuck%2Fnode-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuck%2Fnode-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuck%2Fnode-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zuck","download_url":"https://codeload.github.com/zuck/node-tree/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuck%2Fnode-tree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32901957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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-14T12:18:09.294Z","updated_at":"2026-05-11T15:35:52.299Z","avatar_url":"https://github.com/zuck.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-tree\n\n\u003e An exercise about building an ordered tree from an unsorted list of nodes\n\n## Introduction\n\nThis tool allows to generate a tree from a flat list of unsorted nodes like the\nfollowing:\n\n```json\n[\n  {\n    \"nodeId\": \"2\",\n    \"name\": \"Four\",\n    \"parentId\": \"1\",\n    \"previousSiblingId\": \"3\"\n  },\n  {\n    \"nodeId\": \"1\",\n    \"name\": \"One\",\n    \"parentId\": null,\n    \"previousSiblingId\": null\n  },\n  {\n    \"nodeId\": \"3\",\n    \"name\": \"Three\",\n    \"parentId\": \"1\",\n    \"previousSiblingId\": null\n  }\n]\n```\n\n## Getting started\n\nIn order to execute this program, you need at least `Node.js \u003e= 16.x`.\n\n```bash\n$ npm i\n\n$ npm start \u003cinput_filename\u003e [\u003coutput_filename\u003e]\n\n# e.g.\n$ npm start test/inputs/t1.json\n```\n\n## Testing\n\nThe test suite can be executed with the following command:\n\n```bash\n$ npm test\n```\n\n## License\n\nCopyright (c) Emanuele Bertoldi\n\nMIT License\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuck%2Fnode-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzuck%2Fnode-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuck%2Fnode-tree/lists"}