Get the browserified size of a module after minification and gzipping
$ npm install --save browserify-size
For the CLI:
$ npm install --global browserify-size
API
var browserifySize = require('browserify-size')
browserifySize('xtend', callback)
//=> callback(null, 366)
CLI
# arg
$ browserify-size xtend
# stdin
$ echo xtend | browserify-size
#=> 366 B
Required
Type: string
The package name or a path to a local package.
Type: string
Default: ''
The package version to use. Only applies when downloading from npm.
Type: string
Default: process.cwd()
Required
Type: function
Arguments: err, bytes
A callback to be called with the number of bytes in the resulting bundle after minification and gzipping.
MIT © Ben Drucker