{"id":22355566,"url":"https://github.com/zbo14/rad-tree","last_synced_at":"2026-04-29T10:32:16.927Z","repository":{"id":44077270,"uuid":"205580953","full_name":"zbo14/rad-tree","owner":"zbo14","description":"Small radix tree library","archived":false,"fork":false,"pushed_at":"2022-12-30T18:31:54.000Z","size":188,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-31T09:18:04.510Z","etag":null,"topics":["nodejs","prefix-tree","radix-tree"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zbo14.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-31T18:18:20.000Z","updated_at":"2020-10-22T01:29:03.000Z","dependencies_parsed_at":"2023-01-31T13:15:45.470Z","dependency_job_id":null,"html_url":"https://github.com/zbo14/rad-tree","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zbo14/rad-tree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbo14%2Frad-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbo14%2Frad-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbo14%2Frad-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbo14%2Frad-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zbo14","download_url":"https://codeload.github.com/zbo14/rad-tree/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zbo14%2Frad-tree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32421596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["nodejs","prefix-tree","radix-tree"],"created_at":"2024-12-04T14:07:14.706Z","updated_at":"2026-04-29T10:32:16.907Z","avatar_url":"https://github.com/zbo14.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rad-tree\n\nSmall library implementing a radix (or prefix) tree.\n\n## Install\n\n`npm i --save rad-tree`\n\n## Usage\n\n### Create a tree\n\n```js\n'use strict'\n\nconst Tree = require('rad-tree')\n\nconst tree = new Tree()\n```\n\n### Set key/value pairs\n\n```js\n...\n\ntree.set('icecream', 'cone')\ntree.set('foo', 'bar')\ntree.set('iced', 'coffee')\ntree.set('foobar', 'baz')\ntree.set('ice') // value defaults to `ice`\ntree.set('fo', 'mo')\n```\n\n### Get values\n\n```js\n...\n\ntree.get('foobar')\n// 'baz'\n\ntree.get('icedcoffee')\n// undefined\n```\n\n### Delete key/value pairs\n\n```js\n...\n\ntree.delete('foobar')\n// true\n\ntree.delete('icedcoffee')\n// false\n```\n\n### Generate object representation of tree\n\n```js\n...\n\ntree.toObject()\n\n// {\n//   edges: [\n//     {\n//       key: 'fo',\n//       node: {\n//         value: 'mo',\n//         edges: [\n//           {\n//             key: 'o',\n//             node: {\n//               value: 'bar',\n//               edges: [\n//                 {\n//                   key: 'bar',\n//                   node: { value: 'baz' }\n//                 }\n//               ]\n//             }\n//           }\n//         ]\n//       }\n//     },\n//     {\n//       key: 'ice',\n//       node: {\n//         edges: [\n//           {\n//             key: 'cream',\n//             node: { value: 'cone' }\n//           },\n//           {\n//             key: 'd',\n//             node: { value: 'coffee' }\n//           }\n//         ],\n//         value: 'ice'\n//       }\n//     }\n//   ]\n// }\n```\n\n### Generate string representation of tree\n\n```js\n...\n\ntree.toString()\n\n// `fo: mo\n//   o: bar\n//     bar: baz\n// ice: ice\n//   cream: cone\n//   d: coffee`\n```\n\n## Test\n\n`npm test`\n\n## Lint\n\n`npm run lint`\n\n## Documentation\n\n`npm run doc`\n\n## Contributing\n\nPlease do!\n\nIf you find a bug, want a feature added, or just have a question, feel free to [open an issue](https://github.com/zbo14/rad-tree/issues/new). In addition, you're welcome to [create a pull request](https://github.com/zbo14/rad-tree/compare/develop...) addressing an issue. You should push your changes to a feature branch and request merge to `develop`.\n\nMake sure linting and tests pass and coverage is 💯 before creating a pull request!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzbo14%2Frad-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzbo14%2Frad-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzbo14%2Frad-tree/lists"}