Gathering detailed insights and metrics for @manypkg/get-packages
Gathering detailed insights and metrics for @manypkg/get-packages
Gathering detailed insights and metrics for @manypkg/get-packages
Gathering detailed insights and metrics for @manypkg/get-packages
npm install @manypkg/get-packages
Typescript
Module System
Min. Node Version
Node Version
NPM Version
98.7
Supply Chain
76.7
Quality
78.6
Maintenance
100
Vulnerability
99.6
License
@manypkg/tools@2.0.0
Updated on May 01, 2025
@manypkg/get-packages@3.0.0
Updated on May 01, 2025
@manypkg/find-root@3.0.0
Updated on May 01, 2025
@manypkg/cli@0.24.0
Updated on May 01, 2025
@manypkg/cli@0.23.0
Updated on Nov 21, 2024
@manypkg/cli@0.22.0
Updated on Oct 17, 2024
TypeScript (99.54%)
JavaScript (0.46%)
Total Downloads
127,201,392
Last Day
84,850
Last Week
1,655,623
Last Month
7,450,583
Last Year
70,185,100
MIT License
963 Stars
197 Commits
56 Forks
17 Watchers
10 Branches
52 Contributors
Updated on Jul 03, 2025
Latest Version
3.0.0
Package Id
@manypkg/get-packages@3.0.0
Unpacked Size
21.99 kB
Size
5.28 kB
File Count
8
NPM Version
10.9.2
Node Version
22.14.0
Published on
May 01, 2025
Cumulative downloads
Total Downloads
Last Day
-27.6%
84,850
Compared to previous day
Last Week
-14.6%
1,655,623
Compared to previous week
Last Month
5.4%
7,450,583
Compared to previous month
Last Year
103.5%
70,185,100
Compared to previous year
2
A simple utility to get the packages from a monorepo, whether they're using Yarn, npm, Lerna, pnpm or Rush
This library exports getPackages
and getPackagesSync
. It is intended mostly for use of developers building tools that want to support different kinds of monorepos as an easy way to write tools without having to write tool-specific code. It supports Yarn, npm, Lerna, pnpm, Rush and single-package repos(where the only package is the the same as the root package). This library uses @manypkg/find-root
to search up from the directory that's passed to getPackages
or getPackagesSync
to find the project root.
1import { getPackages, getPackagesSync } from "@manypkg/get-packages"; 2 3const { tool, packages, rootPackage, rootDir } = await getPackages( 4 process.cwd() 5); 6const { tool, packages, rootPackage, rootDir } = getPackagesSync(process.cwd()); 7 8// From @manypkg/tools 9 10interface Tool { 11 readonly type: string; 12 isMonorepoRoot(directory: string): Promise<boolean>; 13 isMonorepoRootSync(directory: string): boolean; 14 getPackages(directory: string): Promise<Packages>; 15 getPackagesSync(directory: string): Packages; 16} 17 18interface Package { 19 packageJson: PackageJSON; 20 dir: string; 21 relativeDir: string; 22} 23 24interface Packages { 25 tool: Tool; 26 packages: Package[]; 27 rootPackage?: Package; 28 rootDir: string; 29}
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
15 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
Found 20/25 approved changesets -- score normalized to 8
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
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
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