{"id":18687361,"url":"https://github.com/junosuarez/path-trie","last_synced_at":"2025-04-12T05:27:03.777Z","repository":{"id":8207587,"uuid":"9641418","full_name":"junosuarez/path-trie","owner":"junosuarez","description":"data structure for path-addressable resources","archived":false,"fork":false,"pushed_at":"2013-04-24T18:53:18.000Z","size":120,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T15:36:34.007Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/junosuarez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-24T06:59:38.000Z","updated_at":"2019-07-11T15:53:26.000Z","dependencies_parsed_at":"2022-07-15T11:00:34.978Z","dependency_job_id":null,"html_url":"https://github.com/junosuarez/path-trie","commit_stats":null,"previous_names":["jden/path-trie"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fpath-trie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fpath-trie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fpath-trie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fpath-trie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junosuarez","download_url":"https://codeload.github.com/junosuarez/path-trie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248521387,"owners_count":21118062,"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-07T10:32:34.133Z","updated_at":"2025-04-12T05:27:03.712Z","avatar_url":"https://github.com/junosuarez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# path-trie\ndata structure for path-addressable resources\n\n## usage\n\n```javascript\n  var pathTrie = require('path-trie')\n\n  var dictionary = {\n    'a/b/c': 123\n  }\n  var trie = pathTrie(dictionary)\n  // =\u003e {\n  //      a: {\n  //        b: {\n  //          c: {\n  //            '@': 123\n  //          }\n  //        }\n  //      }\n  //    }\n\n  dictionary = pathTrie.flatten(trie)\n  // =\u003e {\n  //      'a/b/c': 123\n  //    }\n\n```\n\n## api\n\n### `pathTrie: (dictionary: Dictionary\u003cString, Value\u003e) =\u003e Trie`\n\n### `pathTrie.flatten: (trie: Trie, from: Array\u003cString\u003e = []) =\u003e Dictionary\u003cString, Value\u003e`\n\n`from` is an optional path to flatten just a particular subtrie.\n\n### `pathTrie.put: (this: Trie, path: Path, val: Value) =\u003e Trie`\n\n### `pathTrie.get: (this: Trie, path: Path) =\u003e Value?`\n\n### `pathTrie.del: (this: Trie, path: Path) =\u003e void`\n\n## installation\n\n    $ npm install path-trie\n\n## running the tests\n\nfrom project root:\n\n    $ npm install\n    $ npm test\n\n## contributors\n\n- jden \u003cjason@denizac.org\u003e\n\n## license\nMIT. (c) 2013 jden \u003cjason@denizac.org\u003e. See LICENSE.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunosuarez%2Fpath-trie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunosuarez%2Fpath-trie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunosuarez%2Fpath-trie/lists"}