https://github.com/azz/lerna-get-packages
Get a list of packages from a lerna repository
https://github.com/azz/lerna-get-packages
lerna
Last synced: 11 months ago
JSON representation
Get a list of packages from a lerna repository
- Host: GitHub
- URL: https://github.com/azz/lerna-get-packages
- Owner: azz
- License: mit
- Created: 2017-12-17T11:03:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-17T11:11:44.000Z (over 8 years ago)
- Last Synced: 2025-05-28T17:16:51.813Z (about 1 year ago)
- Topics: lerna
- Language: JavaScript
- Size: 42 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `lerna-get-packages`
> Get an array of packages from a lerna monorepo.
[](https://travis-ci.org/azz/lerna-get-packages)
[](https://github.com/prettier/prettier)
[](https://npmjs.org/lerna-get-packages)
[](https://github.com/semantic-release/semantic-release)
[](LICENSE)
## install
```bash
npm install --save lerna-get-packages
```
## usage
```js
const lernaGetPackages = require('lerna-get-packages');
const packages = lernaGetPackages(__dirname);
```
Returns an array of objects with the properties:
* `location`: file system path to the package.
* `package`: contents of the `package.json` file for the package.