Skip to content

smnandre/nmsize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Lightweight CLI tool to find your node_modules folders and display their disk usage.

GitHub Repo Tests License Sponsor

Installation

Homebrew

# Add the tap
brew tap smnandre/homebrew-nmsize
# Install nmsize
brew install smnandre/nmsize

From Source

git clone https://github.com/smnandre/nmsize.git
cd nmsize
chmod +x nmsize.sh

Usage

Scan node_modules

nmsize [OPTIONS] [DIRECTORY]

If no directory is specified, the current directory . is used.

Options

Option                     Description

-d, --depth NUM	            Maximum search depth (default: 10)
-s, --sort alpha|asc|desc   Sort results by name (alpha), ascending size (asc), or descending size (desc). Default is alpha.
-l, --limit NUM	            Limit the number of displayed results (default: no limit)
-i, --ignore PATTERN	    Ignore paths matching the given pattern (can be used multiple times)
--ignore-dots true|false    Exclude hidden directories (default: true)
-V, --version	            Display version information
-h, --help	                Show help message

Example

nmsize ~/projects -d 5 -s desc --ignore-dots true

License

nmsize is released by Simon André under the MIT License.

Sponsor this project

 

Contributors 2

  •  
  •  

Languages