{"id":18909553,"url":"https://github.com/neovici/cosmoz-treenode","last_synced_at":"2025-04-15T06:29:41.351Z","repository":{"id":24308049,"uuid":"89463849","full_name":"Neovici/cosmoz-treenode","owner":"Neovici","description":"Utility class to manipulate a tree data structure.","archived":false,"fork":false,"pushed_at":"2025-04-05T16:33:32.000Z","size":3590,"stargazers_count":0,"open_issues_count":4,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-05T17:29:45.707Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Neovici.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-04-26T09:36:07.000Z","updated_at":"2025-04-05T16:33:04.000Z","dependencies_parsed_at":"2024-02-21T07:23:25.464Z","dependency_job_id":"eff263cb-6b66-4e86-9c05-7502bfb5f8ba","html_url":"https://github.com/Neovici/cosmoz-treenode","commit_stats":{"total_commits":109,"total_committers":14,"mean_commits":7.785714285714286,"dds":0.7614678899082569,"last_synced_commit":"221488ecb7297f7c3ac3195d7601c40b1c449e20"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neovici%2Fcosmoz-treenode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neovici%2Fcosmoz-treenode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neovici%2Fcosmoz-treenode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neovici%2Fcosmoz-treenode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Neovici","download_url":"https://codeload.github.com/Neovici/cosmoz-treenode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249020377,"owners_count":21199551,"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-11-08T09:34:12.334Z","updated_at":"2025-04-15T06:29:41.343Z","avatar_url":"https://github.com/Neovici.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \\\u003ccosmoz-treenode\\\u003e\n\n[![Build Status](https://github.com/Neovici/cosmoz-treenode/workflows/Github%20CI/badge.svg)](https://github.com/Neovici/cosmoz-treenode/actions?workflow=Github+CI)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nA web component to display a node in a tree data structure. Written in TypeScript using PionJS.\n\n## Features\n\n- Display a path to a node in a tree structure\n- Control display options like maximum nodes to show\n- Hide parts of the path from the root\n- Customizable separator between path parts\n- Fallback text when a path cannot be found\n\n## Installation\n\n```bash\nnpm install @neovici/cosmoz-treenode\n```\n\n## Usage\n\n```html\n\u003ccosmoz-treenode\n\tkey-property=\"pathLocator\"\n\tkey-value=\"1.2.3.301\"\n\tvalue-property=\"name\"\n\tpath-separator=\" / \"\n\thide-from-root=\"0\"\n\tshow-max-nodes=\"0\"\n\tfallback=\"Not found\"\n\u003e\u003c/cosmoz-treenode\u003e\n```\n\n## Scripts\n\n- `npm start` - Starts Storybook development server at port 8000\n- `npm run build` - Builds the TypeScript source files\n- `npm run build:watch` - Watches and builds TypeScript files\n- `npm test` - Runs tests with coverage\n- `npm run test:watch` - Runs tests in watch mode\n- `npm run storybook:build` - Builds Storybook for production\n- `npm run storybook:preview` - Builds and previews Storybook\n\n## Development\n\nThis component is written in TypeScript. The source files are in the `src/` directory.\n\n### Development workflow\n\n1. Clone the repository\n2. Install dependencies: `npm ci`\n3. Start Storybook: `npm start`\n\n### Testing\n\nRun tests:\n\n```bash\nnpm test\n```\n\nRun tests in watch mode:\n\n```bash\nnpm run test:watch\n```\n\n## License\n\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneovici%2Fcosmoz-treenode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneovici%2Fcosmoz-treenode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneovici%2Fcosmoz-treenode/lists"}