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
@manypkg/cli@0.23.0
Published on 21 Nov 2024
@manypkg/cli@0.22.0
Published on 17 Oct 2024
@manypkg/tools@1.1.2
Published on 10 Aug 2024
@manypkg/find-root@2.2.3
Published on 10 Aug 2024
@manypkg/get-packages@2.2.2
Published on 27 Jun 2024
@manypkg/tools@1.1.1
Published on 27 Jun 2024
TypeScript (92.21%)
JavaScript (7.79%)
Total Downloads
97,934,059
Last Day
294,179
Last Week
1,390,449
Last Month
5,540,605
Last Year
55,335,462
932 Stars
181 Commits
50 Forks
20 Watching
15 Branches
52 Contributors
Minified
Minified + Gzipped
Latest Version
2.2.2
Package Id
@manypkg/get-packages@2.2.2
Unpacked Size
21.50 kB
Size
4.78 kB
File Count
10
NPM Version
8.19.4
Node Version
16.20.2
Publised On
27 Jun 2024
Cumulative downloads
Total Downloads
Last day
8.5%
294,179
Compared to previous day
Last week
-2.9%
1,390,449
Compared to previous week
Last month
6.7%
5,540,605
Compared to previous month
Last year
101.5%
55,335,462
Compared to previous year
2
1
A simple utility to get the packages from a monorepo, whether they're using Yarn, Bolt, 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, Bolt, 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(process.cwd()); 4const { tool, packages, rootPackage, rootDir } = getPackagesSync(process.cwd()); 5 6// From @manypkg/tools 7 8interface Tool { 9 readonly type: string; 10 isMonorepoRoot(directory: string): Promise<boolean>; 11 isMonorepoRootSync(directory: string): boolean; 12 getPackages(directory: string): Promise<Packages>; 13 getPackagesSync(directory: string): Packages; 14} 15 16interface Package { 17 packageJson: PackageJSON; 18 dir: string; 19 relativeDir: string; 20} 21 22interface Packages { 23 tool: Tool; 24 packages: Package[]; 25 rootPackage?: Package; 26 rootDir: string; 27}
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 18/22 approved changesets -- score normalized to 8
Reason
2 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 3
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
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
Reason
131 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
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