New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

sizrr

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sizrr

Advanced CLI tool for analyzing npm package sizes with visualization, outdated detection and detailed insights

latest
Source
npmnpm
Version
1.0.8
Version published
Maintainers
0
Created
Source

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

Keywords

npm

FAQs

Package last updated on 12 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts