{"id":2158006,"name":"path-type","ecosystem":"npm","description":"Check if a path is a file, directory, or symlink","homepage":"https://github.com/sindresorhus/path-type#readme","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/sindresorhus/path-type","keywords_array":["path","fs","type","is","check","directory","file","filepath","symlink","symbolic","link","stat","stats","filesystem"],"namespace":null,"versions_count":7,"first_release_published_at":"2015-09-04T08:35:55.517Z","latest_release_published_at":"2024-07-26T10:54:40.007Z","latest_release_number":"6.0.0","latest_published_release_number":"6.0.0","last_synced_at":"2026-11-01T09:06:57.977Z","created_at":"2022-04-09T21:48:39.685Z","updated_at":"2026-11-01T09:06:58.899Z","registry_url":"https://www.npmjs.com/package/path-type","install_command":"npm install path-type","documentation_url":null,"metadata":{"funding":"https://github.com/sponsors/sindresorhus","dist-tags":{"latest":"6.0.0"},"contentPolicy":null,"repository":{"type":"git","url":"git+https://github.com/sindresorhus/path-type.git"}},"repo_metadata":{"id":1220341,"uuid":"41905436","full_name":"sindresorhus/path-type","owner":"sindresorhus","description":"Check if a path is a file, directory, or symlink","archived":false,"fork":false,"pushed_at":"2026-09-18T19:13:50.000Z","size":23,"stargazers_count":81,"open_issues_count":0,"forks_count":15,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-09-22T00:58:43.747Z","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/sindresorhus.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":".github/security.md","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},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","buy_me_a_coffee":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2015-09-04T08:30:12.000Z","updated_at":"2026-09-18T19:13:53.000Z","dependencies_parsed_at":"2024-12-05T04:24:58.176Z","dependency_job_id":"58024dfb-6d28-419b-815d-95a0b2e78458","html_url":"https://github.com/sindresorhus/path-type","commit_stats":{"total_commits":25,"total_committers":7,"mean_commits":"3.5714285714285716","dds":"0.31999999999999995","last_synced_commit":"e772400aa20cc9371fd70943e731a36b30cf8950"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/sindresorhus/path-type","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/path-type/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/sbom","scorecard":{"id":826724,"data":{"date":"2025-08-11","repo":{"name":"github.com/sindresorhus/path-type","commit":"e772400aa20cc9371fd70943e731a36b30cf8950"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Code-Review","score":2,"reason":"Found 7/26 approved changesets -- score normalized to 2","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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: .github/security.md:1","Info: Found linked content: .github/security.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: .github/security.md:1","Info: Found text in security policy: .github/security.md:1"],"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/path-type/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/path-type/main.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/main.yml:25","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"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":"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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"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":"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 '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 7 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-23T16:46:07.818Z","repository_id":1220341,"created_at":"2025-08-23T16:46:07.818Z","updated_at":"2025-08-23T16:46:07.818Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":341189360,"owners_count":37576433,"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-22T02:00:07.665Z","response_time":55,"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":"sindresorhus","name":"Sindre Sorhus","uuid":"170270","kind":"user","description":"Full-Time Open-Sourcerer. Focused on Swift \u0026 JavaScript. Makes macOS apps, CLI tools, npm packages.","email":"","website":"https://sindresorhus.com/apps","location":null,"twitter":"sindresorhus","company":null,"icon_url":"https://avatars.githubusercontent.com/u/170270?u=34acd557a042ac478d273a4621570cadb6b0bd89\u0026v=4","repositories_count":1111,"last_synced_at":"2024-10-29T21:14:09.635Z","metadata":{"has_sponsors_listing":true},"html_url":"https://github.com/sindresorhus","funding_links":["https://github.com/sponsors/sindresorhus"],"total_stars":852379,"followers":69513,"following":31,"created_at":"2022-11-02T16:18:52.881Z","updated_at":"2024-10-29T21:14:09.636Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus/repositories"},"tags":[{"name":"v6.0.0","sha":"e772400aa20cc9371fd70943e731a36b30cf8950","kind":"tag","published_at":"2024-07-26T10:28:48.000Z","download_url":"https://codeload.github.com/sindresorhus/path-type/tar.gz/v6.0.0","html_url":"https://github.com/sindresorhus/path-type/releases/tag/v6.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/sindresorhus/path-type@v6.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/tags/v6.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/tags/v6.0.0/manifests","release_url":null},{"name":"v5.0.0","sha":"80853698ad527c10fc692e71981345762e22f69b","kind":"tag","published_at":"2021-01-27T12:50:09.000Z","download_url":"https://codeload.github.com/sindresorhus/path-type/tar.gz/v5.0.0","html_url":"https://github.com/sindresorhus/path-type/releases/tag/v5.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/sindresorhus/path-type@v5.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/tags/v5.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/tags/v5.0.0/manifests","release_url":null},{"name":"v4.0.0","sha":"b60678846423629b1293955d88a41f7e1d87c338","kind":"tag","published_at":"2019-03-12T09:20:34.000Z","download_url":"https://codeload.github.com/sindresorhus/path-type/tar.gz/v4.0.0","html_url":"https://github.com/sindresorhus/path-type/releases/tag/v4.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/sindresorhus/path-type@v4.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/tags/v4.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/tags/v4.0.0/manifests","release_url":null},{"name":"v3.0.0","sha":"a83cd9d8ad6560dadaa85ae3e677e5a3b58e3ee4","kind":"tag","published_at":"2017-07-08T23:00:55.000Z","download_url":"https://codeload.github.com/sindresorhus/path-type/tar.gz/v3.0.0","html_url":"https://github.com/sindresorhus/path-type/releases/tag/v3.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/sindresorhus/path-type@v3.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/tags/v3.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/tags/v3.0.0/manifests","release_url":null},{"name":"v2.0.0","sha":"ef08bdbd35fa01342ef6d80f2e8eb8b9c2cccc30","kind":"tag","published_at":"2016-09-28T08:28:33.000Z","download_url":"https://codeload.github.com/sindresorhus/path-type/tar.gz/v2.0.0","html_url":"https://github.com/sindresorhus/path-type/releases/tag/v2.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/sindresorhus/path-type@v2.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/tags/v2.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/tags/v2.0.0/manifests","release_url":null},{"name":"v1.1.0","sha":"dff5c2a62f89efe7e0cce600bf38e76196d8b4b2","kind":"tag","published_at":"2015-11-14T19:38:54.000Z","download_url":"https://codeload.github.com/sindresorhus/path-type/tar.gz/v1.1.0","html_url":"https://github.com/sindresorhus/path-type/releases/tag/v1.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/sindresorhus/path-type@v1.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/tags/v1.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/tags/v1.1.0/manifests","release_url":null},{"name":"v1.0.0","sha":"b29ddf1e71fe346a1034e3914efb70287e2ddf64","kind":"tag","published_at":"2015-09-04T08:35:48.000Z","download_url":"https://codeload.github.com/sindresorhus/path-type/tar.gz/v1.0.0","html_url":"https://github.com/sindresorhus/path-type/releases/tag/v1.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/sindresorhus/path-type@v1.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fpath-type/tags/v1.0.0/manifests","release_url":null}]},"repo_metadata_updated_at":"2026-11-01T09:06:58.899Z","dependent_packages_count":1622,"downloads":390860417,"downloads_period":"last-month","dependent_repos_count":2428675,"rankings":{"downloads":0.0032581994368517143,"dependent_repos_count":0.01024005537296253,"dependent_packages_count":0.046545706240738775,"stargazers_count":5.51876162102859,"forks_count":5.500115953599942,"docker_downloads_count":0.008350847296132545,"average":1.8478787304958697},"purl":"pkg:npm/path-type","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/path-type","docker_dependents_count":30408,"docker_downloads_count":9792267026,"usage_url":"https://repos.ecosyste.ms/usage/npm/path-type","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/path-type/dependencies","status":null,"funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://buymeacoffee.com/sindresorhus","https://sindresorhus.com/donate"],"critical":true,"issue_metadata":{"last_synced_at":"2026-11-01T00:53:10.886Z","issues_count":2,"pull_requests_count":11,"avg_time_to_close_issue":38302614.0,"avg_time_to_close_pull_request":847435.0909090909,"issues_closed_count":2,"pull_requests_closed_count":11,"pull_request_authors_count":8,"issue_authors_count":2,"avg_comments_per_issue":2.0,"avg_comments_per_pull_request":0.9090909090909091,"merged_pull_requests_count":8,"bot_issues_count":0,"bot_pull_requests_count":0,"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/sindresorhus%2Fpath-type/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/path-type/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/path-type/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/path-type/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/path-type/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/path-type/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/path-type/codemeta","maintainers":[{"uuid":"sindresorhus","login":"sindresorhus","name":null,"email":"sindresorhus@gmail.com","url":null,"packages_count":1306,"html_url":"https://www.npmjs.com/~sindresorhus","role":null,"created_at":"2022-11-13T17:19:41.665Z","updated_at":"2022-11-13T17:19:41.665Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/sindresorhus/packages"}]}