Gathering detailed insights and metrics for path-type-lab
Gathering detailed insights and metrics for path-type-lab
Gathering detailed insights and metrics for path-type-lab
Gathering detailed insights and metrics for path-type-lab
npm install path-type-lab
Typescript
Module System
Min. Node Version
Node Version
NPM Version
67.2
Supply Chain
87.3
Quality
74.9
Maintenance
100
Vulnerability
100
License
JavaScript (87.15%)
TypeScript (12.85%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
78 Stars
26 Commits
14 Forks
6 Watchers
1 Branches
7 Contributors
Updated on Jan 20, 2025
Latest Version
4.0.0
Package Id
path-type-lab@4.0.0
Unpacked Size
5.30 kB
Size
1.96 kB
File Count
5
NPM Version
9.5.0
Node Version
19.0.0
Published on
Mar 01, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Check if a path is a file, directory, or symlink
$ npm install path-type
1const {isFile} = require('path-type'); 2 3(async () => { 4 console.log(await isFile('package.json')); 5 //=> true 6})();
Check whether the passed path
is a file.
Returns a Promise<boolean>
.
Type: string
The path to check.
Check whether the passed path
is a directory.
Returns a Promise<boolean>
.
Check whether the passed path
is a symlink.
Returns a Promise<boolean>
.
Synchronously check whether the passed path
is a file.
Returns a boolean
.
Synchronously check whether the passed path
is a directory.
Returns a boolean
.
Synchronously check whether the passed path
is a symlink.
Returns a boolean
.
MIT © Sindre Sorhus
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 7/26 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More