{"id":27055131,"url":"https://github.com/tseijp/parsed-path","last_synced_at":"2026-03-27T04:05:23.094Z","repository":{"id":43386186,"uuid":"358853786","full_name":"tseijp/parsed-path","owner":"tseijp","description":"Use the best bits of ES6 to parse your path without stress 👋","archived":false,"fork":false,"pushed_at":"2024-12-12T21:31:46.000Z","size":1981,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-28T13:36:41.465Z","etag":null,"topics":["dir","directory","file","filepath","filesystem","nodejs","parse","path","reactjs","stat","typescript"],"latest_commit_sha":null,"homepage":"https://tseijp.github.io/parsed-path/","language":"TypeScript","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/tseijp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-04-17T10:52:12.000Z","updated_at":"2024-12-12T21:31:49.000Z","dependencies_parsed_at":"2022-09-10T16:23:23.038Z","dependency_job_id":"f3692d15-ea14-41bf-90dd-6e7145cfae96","html_url":"https://github.com/tseijp/parsed-path","commit_stats":{"total_commits":51,"total_committers":3,"mean_commits":17.0,"dds":"0.23529411764705888","last_synced_commit":"d37e2f3a4c22d6345cc6f2c03dfb935f50159211"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tseijp/parsed-path","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tseijp%2Fparsed-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tseijp%2Fparsed-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tseijp%2Fparsed-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tseijp%2Fparsed-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tseijp","download_url":"https://codeload.github.com/tseijp/parsed-path/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tseijp%2Fparsed-path/sbom","scorecard":{"id":900649,"data":{"date":"2025-08-11","repo":{"name":"github.com/tseijp/parsed-path","commit":"39396770e7002699dcd42deaf2b2849eb0bafd07"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 15 changesets","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"59 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-jrvm-mcxc-mf6m","Warn: Project is vulnerable to: GHSA-mf6x-hrgr-658f","Warn: Project is vulnerable to: GHSA-xrh7-m5pp-39r6","Warn: Project is vulnerable to: GHSA-6h5x-7c5m-7cr7","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-33f9-j839-rf8h","Warn: Project is vulnerable to: GHSA-c36v-fmgq-m8hx","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5","Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp","Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq","Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr","Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765","Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-3j8f-xvm3-ffx4","Warn: Project is vulnerable to: GHSA-4p35-cfcx-8653","Warn: Project is vulnerable to: GHSA-7f3x-x4pr-wqhj","Warn: Project is vulnerable to: GHSA-jpp7-7chh-cf67","Warn: Project is vulnerable to: GHSA-q6wq-5p59-983w","Warn: Project is vulnerable to: GHSA-j9fq-vwqv-2fm2","Warn: Project is vulnerable to: GHSA-pqw5-jmp5-px4v","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-x7hr-w5r2-h6wg","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T15:26:59.202Z","repository_id":43386186,"created_at":"2025-08-24T15:26:59.202Z","updated_at":"2025-08-24T15:26:59.202Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31018546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T03:51:26.850Z","status":"ssl_error","status_checked_at":"2026-03-27T03:51:09.693Z","response_time":164,"last_error":"SSL_read: 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":["dir","directory","file","filepath","filesystem","nodejs","parse","path","reactjs","stat","typescript"],"created_at":"2025-04-05T09:19:02.106Z","updated_at":"2026-03-27T04:05:23.086Z","avatar_url":"https://github.com/tseijp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 👋parsed-path\r\n\r\n\u003ch3 align=\"center\"\u003e\u003cruby\u003e\r\n\u003ch3 align=\"right\"\u003e\u003cruby\u003e\r\n\u003ch3 align=\"left\"\u003e\u003cruby\u003e\r\n\r\n```ruby\r\n\u003c 👋 \u003e\r\nparsed\r\npath\r\n```\r\n\r\n\u003c/ruby\u003e\u003c/h3\u003e\r\n\u003c/ruby\u003e\u003c/h3\u003e\r\n\u003c/ruby\u003e\u003c/h3\u003e\r\n\r\n\u003cstrong align=\"center\"\u003e\r\n\u003csamp\u003e\r\n\r\nUse the best bits of ES6 to parse your path without stress 👋\r\n\r\n[![ version ](\r\n    https://img.shields.io/npm/v/parsed-path)](\r\n    https://npmjs.com/package/parsed-path)\r\n[![ Downloads ](\r\n    https://img.shields.io/npm/dm/parsed-path.svg)](\r\n    https://npmjs.com/package/parsed-path)\r\n[![ jsDelivr ](\r\n    https://badgen.net/jsdelivr/hits/npm/parsed-path)](\r\n    https://www.jsdelivr.com/package/npm/parsed-path)\r\n[![ minified size ](\r\n    https://badgen.net/bundlephobia/minzip/parsed-path)](\r\n    https://bundlephobia.com/result?p=parsed-path@latest)\r\n[![ types includes ](\r\n    https://badgen.net/npm/types/parsed-path)](\r\n    https://www.npmjs.com/package/parsed-path)\r\n[![ license ](\r\n    https://badgen.net/npm/license/parsed-path)](\r\n    https://www.npmjs.com/package/parsed-path)\r\n[![ module formats ](\r\n    https://img.shields.io/badge/module%20formats-cjs%20esm-green.svg)](\r\n    #installation)\r\n[![ codecov ](\r\n    https://codecov.io/gh/tseijp/parsed-path/coverage.svg?branch=master)](\r\n    https://codecov.io/gh/tseijp/parsed-path)\r\n[![ style: styled-components ](\r\n    https://img.shields.io/badge/style-%F0%9F%92%85%20styled--components-orange.svg?colorB=daa357\u0026colorA=db748e)](\r\n    https://github.com/styled-components/styled-components)\r\n\r\n\u003chr/\u003e\r\n\u003c/samp\u003e\r\n\u003c/strong\u003e\r\n\r\n## Installation\r\n\r\n\u003ch4 align=\"center\"\u003e\r\n\r\n```ruby\r\nnpm install parsed-path or yarn add parsed-path\r\n```\r\n\r\n\u003c/h4\u003e\r\n\r\n## Documentation and Examples\r\n\r\nSee the documentation for more information about `parsed-path`.\r\n\r\n\u003ch6\u003e\r\n\r\nMore info about the project can be found here: \u003ckbd\u003e**[Tutorial Intro][intro]**\u003c/kbd\u003e\r\n\r\nQuicklinks to some of the most-visited pages: \u003ckbd\u003e**[Getting started][get]**\u003c/kbd\u003e\r\n\r\nExamples and tutorials can be found here: \u003ckbd\u003e**[API Reference][api]**\u003c/kbd\u003e\r\n\r\n\u003c/h6\u003e\r\n\u003chr/\u003e\r\n\r\n## What does it look like?\r\n\r\nUtilising tagged template literals (a recent addition to JavaScript),\r\nparsed-path allows you to write pathname.\r\nThis two example creates simple pathname.\r\na Root and a File, with some parsed form to it:\r\n\r\n```js\r\nimport parsed from 'parsed-path';\r\n\r\nconst Root = parsed`/`;\r\n\r\nconst Path = Root`home``user``dir`;\r\n```\r\n\r\nYou can pass a function to a template literal to adapt it based on its props.\r\nWhen setting the back prop to true, we are moving to its parent dir.\r\n\r\n```js\r\nconst Back = Path`\r\n  ${(props: any) =\u003e props.back \u0026\u0026 '..'}\r\n`;\r\n```\r\n\r\n`Parsed-path` tagged pathform to parse your pathname.\r\nIt also removes the mapping between pathname and pathform\r\n– using path as a low-level parsing construct could not be easier!\r\n\r\n```js\r\nconst File = Back`ignore.ts``\r\n  name: file;\r\n  ext: ${(props: any) =\u003e props.xml \u0026\u0026 '.tsx'};\r\n`;\r\n```\r\n\r\n\u003ch6 align=\"center\"\u003e\r\n\u003cruby align=\"left\"\u003e\r\n\u003cblockquote vlign=\"center\"\u003e\r\n\r\n```jsx\r\n\u003cFile back /\u003e to equal /home/user/file.ts\r\n\u003cFile xml /\u003e to equal /home/user/dir/file.tsx\r\n```\r\n\r\n\u003c/blockquote\u003e\r\n\u003c/ruby\u003e\r\n\u003c/h6\u003e\r\n\r\n`Parsed-path` uses \u003ckbd\u003e**[node][node]**\u003c/kbd\u003e module for parsing the path rules.\r\nFor additional information about the supported prefixes visit their \u003ckbd\u003e**[docs][docs]**\u003c/kbd\u003e.\r\n\r\n\u003ch6 align=\"center\"\u003e\r\n\u003cruby align=\"right\"\u003e\r\n\u003cblockquote vlign=\"center\"\u003e\r\n\r\n```js\r\n┌──────────────────────┬────────────┐\r\n│           dir        │    base    │\r\n├──────┬               ├──────┬─────┤\r\n│ root │               │ name │ ext │\r\nparsed`    /``home``user``dir``file``.tsx `\r\nparsed` C:\\\\``      path``dir``file``.tsx `\r\n└──────┴───────────────┴──────┴─────┘\r\n```\r\n\r\n\u003c/blockquote\u003e\r\n\u003c/ruby\u003e\r\n\u003c/h6\u003e\r\n\r\nThis is a \u003ckbd\u003e**[live editor][live]**\u003c/kbd\u003e,\r\nso play around with the code to get a feel for\r\nwhat it's like to work with `parsed-path`!\r\n\r\n[intro]: https://tseijp.github.io/parsed-path/docs/intro\r\n[get]: https://tseijp.github.io/parsed-path/docs/get\r\n[api]: https://tseijp.github.io/parsed-path/docs/api\r\n[live]: https://codesandbox.io/s/parsed-path-x66qy\r\n[node]: https://github.com/nodejs/node/blob/master/lib/path.js\r\n[docs]: https://nodejs.org/docs/latest/api/path.html#path_path_parse_path\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftseijp%2Fparsed-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftseijp%2Fparsed-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftseijp%2Fparsed-path/lists"}