Gathering detailed insights and metrics for pkg-dir-cli
Gathering detailed insights and metrics for pkg-dir-cli
npm install pkg-dir-cli
Typescript
Module System
Min. Node Version
Node Version
NPM Version
62
Supply Chain
73.1
Quality
75.4
Maintenance
100
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
40,671
Last Day
25
Last Week
51
Last Month
478
Last Year
7,941
24 Stars
15 Commits
4 Forks
7 Watching
1 Branches
2 Contributors
Latest Version
4.0.0
Package Id
pkg-dir-cli@4.0.0
Unpacked Size
3.19 kB
Size
1.67 kB
File Count
4
NPM Version
9.2.0
Node Version
18.18.2
Publised On
04 Nov 2023
Cumulative downloads
Total Downloads
Last day
8.7%
25
Compared to previous day
Last week
-62.8%
51
Compared to previous week
Last month
-43.2%
478
Compared to previous month
Last year
248.9%
7,941
Compared to previous year
Find the root directory of a Node.js project or npm package
1npm install --global pkg-dir-cli
$ pkg-dir --help
Usage
$ pkg-dir <cwd>
Examples
$ echo $PWD
/Users/sindresorhus/foo/bar
$ pkg-dir
/Users/sindresorhus/foo
/
└── Users
└── sindresorhus
└── foo
├── package.json
└── bar
└── example.js
$ echo $PWD
/Users/sindresorhus/foo/bar
$ pkg-dir
/Users/sindresorhus/foo
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
Found 1/15 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-01-06
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