Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
get-monorepo-packages
Advanced tools
The get-monorepo-packages npm package is designed to help developers working with monorepos by providing utilities to list and manage packages within a monorepo setup. It simplifies the process of identifying and working with multiple packages in a single repository.
List all packages in a monorepo
This feature allows you to list all the packages in a monorepo. The `getPackages` function scans the monorepo and returns an array of package information, which can be useful for various management tasks.
const { getPackages } = require('get-monorepo-packages');
const packages = getPackages();
console.log(packages);
Get package details
This feature provides detailed information about each package in the monorepo, including the package name and its location. This can be useful for scripts that need to operate on specific packages.
const { getPackages } = require('get-monorepo-packages');
const packages = getPackages();
packages.forEach(pkg => {
console.log(`Package Name: ${pkg.package.name}`);
console.log(`Package Path: ${pkg.location}`);
});
Lerna is a popular tool for managing JavaScript projects with multiple packages. It offers a wide range of features including bootstrapping, linking dependencies, and running scripts across packages. Compared to get-monorepo-packages, Lerna provides more comprehensive monorepo management capabilities but can be more complex to set up and use.
Nx is a set of extensible dev tools for monorepos, which helps you develop like Google, Facebook, and Microsoft. It offers advanced features like dependency graph visualization, affected command, and more. While get-monorepo-packages focuses on listing and basic management, Nx provides a more integrated development experience with additional tooling and optimizations.
Bolt is a JavaScript project management tool that is designed to work with monorepos. It provides features like workspaces, dependency management, and script running. Bolt is similar to get-monorepo-packages in its focus on monorepo management but offers a broader set of features for project management.
get-monorepo-packages
Get a list of packages from a monorepo. Supports:
npm install --save get-monorepo-packages
import getPackages from 'get-monorepo-packages';
getPackages('/path/to/root');
Returns an array of objects containing:
location
- The relative path to the package.package
- The package.json
file for the package.FAQs
Get a list of packages from a monorepo
We found that get-monorepo-packages demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.