{"id":23708532,"url":"https://github.com/mattriley/node-pathstruct","last_synced_at":"2025-06-18T16:33:58.461Z","repository":{"id":176919269,"uuid":"654350610","full_name":"mattriley/node-pathstruct","owner":"mattriley","description":"Parse and stringify data structures embedded in file paths.","archived":false,"fork":false,"pushed_at":"2025-02-13T11:07:26.000Z","size":367,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-01T04:49:52.377Z","etag":null,"topics":["javascript","nodejs","npm-package","parser"],"latest_commit_sha":null,"homepage":"","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/mattriley.png","metadata":{"files":{"readme":"README-TEMPLATE.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":"2023-06-16T00:11:53.000Z","updated_at":"2025-02-13T11:07:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"20c0074b-68e5-455d-9165-0ebf81a570c5","html_url":"https://github.com/mattriley/node-pathstruct","commit_stats":{"total_commits":231,"total_committers":1,"mean_commits":231.0,"dds":0.0,"last_synced_commit":"c98354af06186fe1364bebc3303e43f67f21f2c4"},"previous_names":["mattriley/node-pathstruct"],"tags_count":35,"template":false,"template_full_name":null,"purl":"pkg:github/mattriley/node-pathstruct","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattriley%2Fnode-pathstruct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattriley%2Fnode-pathstruct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattriley%2Fnode-pathstruct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattriley%2Fnode-pathstruct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattriley","download_url":"https://codeload.github.com/mattriley/node-pathstruct/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattriley%2Fnode-pathstruct/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259301677,"owners_count":22836976,"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":["javascript","nodejs","npm-package","parser"],"created_at":"2024-12-30T18:00:47.976Z","updated_at":"2025-06-18T16:33:53.077Z","avatar_url":"https://github.com/mattriley.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c%- lib.renderOpening() %\u003e\n\n## Install\n\n\u003c%- await lib.renderCode('npm install pathstruct', 'sh', 'https://www.npmjs.com/package/pathstruct') %\u003e\n\n## Example Usage\n\n### parse\n\nParse key-value pairs from a file path:\n\n```js\nconst pathstruct = require('pathstruct');\nconst str = 'event=\"Birthday party\"/IMG1234 caption=\"Blowing out candles\".jpg';\nconst obj = pathstruct.parse(str);\n// { event: 'Birthday party', caption: 'Blowing out candles' }\n```\n\nParse key-value pairs including arrays and nested object structures:\n\n```js\nconst pathstruct = require('pathstruct');\nconst str = 'val=foobar arr=[foo,bar] x.val=foobar x.arr=[foo,bar]';\nconst obj = pathstruct.parse(str);\n// { val: 'foobar', arr: ['foo', 'bar'], x: { val: 'foobar', arr: ['foo', 'bar']} }\n```\n\n### stringify\n\n```js\nconst pathstruct = require('pathstruct');\nconst obj = { val: 'foobar', arr: ['foo', 'bar'], x: { val: 'foobar', arr: ['foo', 'bar']} };\nconst str = pathstruct.stringify(obj);\n// val=foobar arr=[foo,bar] x.val=foobar x.arr=[foo,bar]\n```\n\n## Architecture\n\n\u003c%- await lib.renderModuleDiagram() %\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattriley%2Fnode-pathstruct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattriley%2Fnode-pathstruct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattriley%2Fnode-pathstruct/lists"}