weigh

JSON →
library 5.1.0 ·javascript maintenance
verified Jun 4, 2026

A CLI tool to estimate the bundle size of browser-compatible npm modules by downloading, bundling with browserify or concat, minifying with uglify/closure/babili/butternut, and optionally gzipping. Current stable version is 5.1.0. It supports various module identifiers (scoped packages, submodules, versions) and outputs uncompressed, minified, and gzipped sizes. Key differentiator: simple one-command bundle size estimation without setup. Release cadence is low (last major release 2017). Note: Only works with CommonJS modules, not ESM.