Gathering detailed insights and metrics for top-pkg-dir
Gathering detailed insights and metrics for top-pkg-dir
npm install top-pkg-dir
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (81%)
JavaScript (15.43%)
HTML (3.57%)
Total Downloads
2,975
Last Day
5
Last Week
36
Last Month
217
Last Year
1,047
42 Commits
1 Watching
15 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.3
Package Id
top-pkg-dir@0.0.3
Unpacked Size
7.74 kB
Size
3.00 kB
File Count
7
NPM Version
6.9.0
Node Version
12.4.0
Cumulative downloads
Total Downloads
Last day
-37.5%
5
Compared to previous day
Last week
-60.4%
36
Compared to previous week
Last month
4.3%
217
Compared to previous month
Last year
107.3%
1,047
Compared to previous year
1
Find top most root directory of a Node.js project or npm package.
└─ Development
└─ Projects
└─ project-a
├─ package.json
├─ lib
└─ node_modules
├─ project-b
└─ lib
└─ example.js
example.js
1import topPkgDir from "top-pkg-dir"; 2 3async function() { 4 const topProjectDir = await topPkgDir(); // '/Development/Projects/project-a' 5}
Returns a Promise
for either the top most project root path or undefined
if it couldn't be found.
Returns the top most project root path or undefined
if it couldn't be found.
Type: string
Default: process.cwd()
Directory to start from.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/26 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
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
Reason
35 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-20
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