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.8
Supply Chain
76.7
Quality
84.1
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
121,783,098
Last Day
286,089
Last Week
1,791,951
Last Month
6,979,217
Last Year
67,533,308
MIT License
954 Stars
196 Commits
53 Forks
17 Watchers
10 Branches
52 Contributors
Updated on May 05, 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
19%
286,089
Compared to previous day
Last Week
20.1%
1,791,951
Compared to previous week
Last Month
-1.8%
6,979,217
Compared to previous month
Last Year
103.6%
67,533,308
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 binaries found in the repo
Reason
15 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 20/25 approved changesets -- score normalized to 8
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
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
SAST tool is not run on all commits -- score normalized to 0
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