# get-monorepo-packages

> Get a list of packages from a monorepo

Latest version **1.3.0** (published 2025-01-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-monorepo-packages
pnpm add get-monorepo-packages
yarn add get-monorepo-packages
bun add get-monorepo-packages
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2025-01-26 |
| First published | 2018-01-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19 |
| Author | Lucas Azzola |
| Maintainers | azz |
| Keywords | yarn, workspaces, lerna |

## Links

- npm: https://www.npmjs.com/package/get-monorepo-packages
- Repository: https://github.com/azz/get-monorepo-packages
- Homepage: https://github.com/azz/get-monorepo-packages#readme
- Issues: https://github.com/azz/get-monorepo-packages/issues
- npm.io page: https://npm.io/package/get-monorepo-packages

## Dependencies (2)

- [globby](https://npm.io/package/globby.md) ^7.1.1
- [load-json-file](https://npm.io/package/load-json-file.md) ^4.0.0

## Recent versions

- 1.3.0 (latest) — 2025-01-26
- 1.2.0 — 2019-05-14
- 1.1.0 — 2018-08-31
- 1.0.1 — 2018-01-05
- 1.0.0 — 2018-01-05

## README

# `get-monorepo-packages`

[![Travis](https://img.shields.io/travis/azz/get-monorepo-packages.svg?style=flat-square)](https://travis-ci.org/azz/get-monorepo-packages)
[![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![npm](https://img.shields.io/npm/v/get-monorepo-packages.svg?style=flat-square)](https://npmjs.org/get-monorepo-packages)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)

Get a list of packages from a monorepo. Supports:

* [Lerna](https://github.com/lerna/lerna)
* [Yarn workspaces](https://yarnpkg.com/lang/en/docs/workspaces/)
* [Bolt](http://boltpkg.com/)

## Install

```bash
npm install --save get-monorepo-packages
```

## Usage

```js
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.

---
_Source: https://npm.io/package/get-monorepo-packages · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
