Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zanonnicola/top-deps
Find out the most common used npm packages in a given directory
https://github.com/zanonnicola/top-deps
cli dependencies nodejs typescript
Last synced: 27 days ago
JSON representation
Find out the most common used npm packages in a given directory
- Host: GitHub
- URL: https://github.com/zanonnicola/top-deps
- Owner: zanonnicola
- License: apache-2.0
- Created: 2019-07-05T13:55:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T04:24:02.000Z (almost 2 years ago)
- Last Synced: 2024-04-29T19:08:39.389Z (8 months ago)
- Topics: cli, dependencies, nodejs, typescript
- Language: JavaScript
- Size: 779 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# top-deps
> Count and display the most common used packages in a given directory
## Install
```
$ npm install --global top-deps
```## Usage
Use current directory as a starting point.
```
$ top-deps --helpUsage
$ top-depsOptions
--limit, -l limit number of rows displayed (default 3)Other options:
-h, --help show usage information
-v, --version print version info and exitExamples
$ top-deps ./ --limit 3
┌───┬──────────────┬───────┐
│ │ Package Name │ Count │
├───┼──────────────┼───────┤
│ 1 │ react │ 12 │
├───┼──────────────┼───────┤
│ 2 │ react-dom │ 12 │
├───┼──────────────┼───────┤
│ 3 │ prettier │ 9 │
└───┴──────────────┴───────┘
```