{"id":2157938,"name":"path-root-regex","ecosystem":"npm","description":"Regular expression for getting the root of a posix or windows filepath.","homepage":"https://github.com/regexhq/path-root-regex","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/regexhq/path-root-regex","keywords_array":["detect","expression","file","filepath","match","parse","path","regex","regexp","regular","root","test"],"namespace":null,"versions_count":3,"first_release_published_at":"2016-03-29T06:52:33.322Z","latest_release_published_at":"2016-03-29T07:06:36.688Z","latest_release_number":"0.1.2","last_synced_at":"2026-10-07T09:07:19.629Z","created_at":"2022-04-09T21:48:37.007Z","updated_at":"2026-10-07T09:07:19.630Z","registry_url":"https://www.npmjs.com/package/path-root-regex","install_command":"npm install path-root-regex","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"0.1.2"},"contentPolicy":null},"repo_metadata":{"id":57320705,"uuid":"54953330","full_name":"regexhq/path-root-regex","owner":"regexhq","description":"Regular expression for getting the root of a posix or windows filepath.","archived":false,"fork":false,"pushed_at":"2018-06-14T22:06:21.000Z","size":9,"stargazers_count":13,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-09-08T18:43:37.910Z","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/regexhq.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":"2016-03-29T06:59:49.000Z","updated_at":"2023-03-02T15:54:10.000Z","dependencies_parsed_at":"2022-08-25T21:01:30.842Z","dependency_job_id":null,"html_url":"https://github.com/regexhq/path-root-regex","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/regexhq/path-root-regex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Fpath-root-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Fpath-root-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Fpath-root-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Fpath-root-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regexhq","download_url":"https://codeload.github.com/regexhq/path-root-regex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Fpath-root-regex/sbom","scorecard":{"id":768838,"data":{"date":"2025-08-11","repo":{"name":"github.com/regexhq/path-root-regex","commit":"89452d93fab36c9927d24c2779fedfe81f23279c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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 1 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"}}]},"last_synced_at":"2025-08-23T01:39:43.827Z","repository_id":57320705,"created_at":"2025-08-23T01:39:43.827Z","updated_at":"2025-08-23T01:39:43.827Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":341189360,"owners_count":37300604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-09-14T02:00:06.290Z","response_time":176,"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"},"owner_record":{"login":"regexhq","name":"RegexHQ","uuid":"9793710","kind":"organization","description":"Collaboration on a world-wide community-driven collection of RegExp patterns and tools that can make our life easier.","email":null,"website":"https://regexhq.tunnckocore.com","location":"Global","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/9793710?v=4","repositories_count":52,"last_synced_at":"2025-03-05T02:02:31.125Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/regexhq","funding_links":[],"total_stars":851,"followers":102,"following":0,"created_at":"2022-11-02T16:21:20.106Z","updated_at":"2025-03-05T02:02:31.125Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regexhq","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regexhq/repositories"},"tags":[{"name":"v0.1.2","sha":"89452d93fab36c9927d24c2779fedfe81f23279c","kind":"commit","published_at":"2016-12-13T04:51:19.000Z","download_url":"https://codeload.github.com/regexhq/path-root-regex/tar.gz/v0.1.2","html_url":"https://github.com/regexhq/path-root-regex/releases/tag/v0.1.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/regexhq/path-root-regex@v0.1.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Fpath-root-regex/tags/v0.1.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Fpath-root-regex/tags/v0.1.2/manifests"}]},"repo_metadata_updated_at":"2026-09-19T21:08:14.913Z","dependent_packages_count":86,"downloads":40585806,"downloads_period":"last-month","dependent_repos_count":415182,"rankings":{"downloads":0.05774405556571652,"dependent_repos_count":0.055827467661686093,"dependent_packages_count":0.3979385174859945,"stargazers_count":8.649481439620757,"forks_count":8.73183998238929,"docker_downloads_count":0.048352774835967456,"average":2.9901973729265685},"purl":"pkg:npm/path-root-regex","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/path-root-regex","docker_dependents_count":2842,"docker_downloads_count":1516842725,"usage_url":"https://repos.ecosyste.ms/usage/npm/path-root-regex","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/path-root-regex/dependencies","status":null,"funding_links":[],"critical":true,"issue_metadata":{"last_synced_at":"2026-09-14T02:51:17.133Z","issues_count":1,"pull_requests_count":2,"avg_time_to_close_issue":48168719.0,"avg_time_to_close_pull_request":1750.0,"issues_closed_count":1,"pull_requests_closed_count":1,"pull_request_authors_count":1,"issue_authors_count":1,"avg_comments_per_issue":3.0,"avg_comments_per_pull_request":0.0,"merged_pull_requests_count":1,"bot_issues_count":0,"bot_pull_requests_count":2,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/regexhq%2Fpath-root-regex/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/path-root-regex/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/path-root-regex/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/path-root-regex/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/path-root-regex/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/path-root-regex/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/path-root-regex/codemeta","maintainers":[{"uuid":"jonschlinkert","login":"jonschlinkert","name":null,"email":"github@sellside.com","url":null,"packages_count":1555,"html_url":"https://www.npmjs.com/~jonschlinkert","role":null,"created_at":"2022-11-13T17:19:36.349Z","updated_at":"2022-11-13T17:19:36.349Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/jonschlinkert/packages"}]}