Gathering detailed insights and metrics for top-pkg-dir
Gathering detailed insights and metrics for top-pkg-dir
Gathering detailed insights and metrics for top-pkg-dir
Gathering detailed insights and metrics for top-pkg-dir
Create files using any template engine as simple as possible. Just a template and a JSON/YAML file is enough.
npm install top-pkg-dir
Typescript
Module System
Min. Node Version
Node Version
NPM Version
66.1
Supply Chain
76.2
Quality
75.2
Maintenance
100
Vulnerability
100
License
TypeScript (81%)
JavaScript (15.43%)
HTML (3.57%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
42 Commits
15 Branches
1 Contributors
Updated on Jun 08, 2020
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
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
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
Found 0/26 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
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
36 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-05
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