Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 --help

Usage
$ top-deps

Options
--limit, -l limit number of rows displayed (default 3)

Other options:
-h, --help show usage information
-v, --version print version info and exit

Examples
$ top-deps ./ --limit 3
┌───┬──────────────┬───────┐
│ │ Package Name │ Count │
├───┼──────────────┼───────┤
│ 1 │ react │ 12 │
├───┼──────────────┼───────┤
│ 2 │ react-dom │ 12 │
├───┼──────────────┼───────┤
│ 3 │ prettier │ 9 │
└───┴──────────────┴───────┘
```