{"id":23896616,"url":"https://github.com/brecert/simple_trie","last_synced_at":"2026-04-18T12:02:17.793Z","repository":{"id":113036488,"uuid":"264097543","full_name":"brecert/simple_trie","owner":"brecert","description":"a very simple trie datastructure, primarily made to be used for routing tools","archived":false,"fork":false,"pushed_at":"2020-05-15T06:03:52.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-14T12:02:19.299Z","etag":null,"topics":["datastructure","deno","javascript"],"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/brecert.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":"2020-05-15T04:42:46.000Z","updated_at":"2020-05-15T06:03:54.000Z","dependencies_parsed_at":"2023-06-06T15:45:17.921Z","dependency_job_id":null,"html_url":"https://github.com/brecert/simple_trie","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/brecert/simple_trie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Fsimple_trie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Fsimple_trie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Fsimple_trie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Fsimple_trie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brecert","download_url":"https://codeload.github.com/brecert/simple_trie/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Fsimple_trie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31967993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["datastructure","deno","javascript"],"created_at":"2025-01-04T16:53:34.385Z","updated_at":"2026-04-18T12:02:17.788Z","avatar_url":"https://github.com/brecert.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Trie\n\nThis module provides a very simple trie datastructure, primarily made to be used for routing tools.\n\n# Example\n\n```ts\nimport Trie from 'https://raw.githubusercontent.com/brecert/simple_trie/master/trie.ts'\n\nconst trie = new Trie\u003cstring\u003e()\n\ntrie.add(\"/index.html\", \"Hello World!\")\ntrie.add(\"/lib/cat.js\", \"cat cat cat!\")\ntrie.add(\"/lib/dog.js\", \"dog dog dog!\")\ntrie.add(\"/test/*\", \"test!\")\ntrie.add(\"/test/*/yes\", \"yes\")\ntrie.add(\"/test/bree\", \"bree\")\n\ntrie.get(\"/index.html\")\n// =\u003e returns { value: \"Hello World!\", params: [], node: Trie }\n\ntrie.get(\"/lib/cat.js\")\n// =\u003e returns { value: \"cat cat cat!\", params: [], node: Trie }\n\ntrie.get(\"/lib/dog.js\")\n// =\u003e returns { value: \"dog dog dog!\", params: [], node: Trie }\n\ntrie.get(\"/test/hi\")\n// =\u003e returns { value: \"test!\", params: [\"hi\"], node: Trie }\n\ntrie.get(\"/test/hi/yes\")\n// =\u003e returns { value: \"yes\", params: [\"hi\"], node: Trie }\n\ntrie.get(\"/test/bree\")\n// =\u003e returns { value: \"bree\", params: [], node: Trie }\n\ntrie.get(\"/test/e/f\")\n// =\u003e returns { value: undefined, params: [], node: undefined } \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrecert%2Fsimple_trie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrecert%2Fsimple_trie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrecert%2Fsimple_trie/lists"}