Skip to content
/ sizrr Public

A simple command-line tool to analyze and display the sizes of npm packages in your project.

License

Notifications You must be signed in to change notification settings

dalist1/sizrr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sizrr

A simple command-line tool to analyze and display the sizes of npm packages in your project.

Features

  • Lists all dependencies and their sizes
  • Calculates the total size of all packages
  • Color-coded output for easy size comparison
  • Supports both dependencies and devDependencies
  • Human-readable size formatting (B, KB, MB, GB, TB)

Installation

This package is published on npm. You can install it globally:

npm install -g sizrr

Or use it directly with npx (no installation required):

npx sizrr

Usage

If installed globally:

sizrr

Without installation (using npx):

npx sizrr

Make sure you're in the root directory of your npm project (where the package.json file is located) when running this command.

If you want to skip the npx installation prompt:

npx --yes sizrr

Output

The output will look something like this:

Package Sizes:
======================================
express                     5.23 MB
react                      3.45 MB
lodash                     1.78 MB
...
======================================
Total size:               64.32 MB

Packages are color-coded based on their size:

  • Green: Less than 1 MB
  • Yellow: Between 1 MB and 10 MB
  • Red: More than 10 MB

Requirements

  • Node.js >= 14.0.0

License

MIT

About

A simple command-line tool to analyze and display the sizes of npm packages in your project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published