Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajaymathur/popular-package
👑 get to know the popularity of packages in a mono repo 👑
https://github.com/ajaymathur/popular-package
bolt lerna stats
Last synced: 19 days ago
JSON representation
👑 get to know the popularity of packages in a mono repo 👑
- Host: GitHub
- URL: https://github.com/ajaymathur/popular-package
- Owner: ajaymathur
- License: mit
- Created: 2018-02-10T11:13:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-06-11T09:43:40.000Z (over 1 year ago)
- Last Synced: 2024-10-11T20:21:17.161Z (about 1 month ago)
- Topics: bolt, lerna, stats
- Language: JavaScript
- Homepage:
- Size: 825 KB
- Stars: 22
- Watchers: 6
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# popular-package
> Get the popularity stats of packages in a mono repository either internally or on npm for [bolt](https://github.com/boltpkg/bolt) or [lerna](https://github.com/lerna/lerna).
![preview](https://raw.githubusercontent.com/ajaymathur/popular-package/master/github/preview.png)
## Install
```sh
$ yarn global add popular-package
```## Examples
View internal popularity of a package in bolt or lerna repository:
```sh
$ popular-package internal
```View popularity of packages on npm for a bolt or lerna repository:
```sh
$ popular-package global
```## Usage
```sh
$ popular-package
```- `command` - (`internal | global`) Wheather to show stats for popularity in repository or globally on npm
### Commands
#### `internal`
Get the stats of a package with dependency in other packages within repository.
#### `global`
Get the stats of a package by the number of downloads in last day on npm.
### Packages Pattern
#### `Bolt`
It will read pattern of workspaces from bolt config in package json of the repository.
#### `Lerna`
It will read pattern of packages from lerna.json in repository.
---
***If neither lerna.json or bolt config in packages json is found packages pattern will default to → `[packages/*]`***