browserify-size
Get the browserified size of a module after minification and gzipping
Last updated 3 years ago by bendrucker .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install browserify-size 
SYNC missed versions from official npm registry.

browserify-size Build Status

Get the browserified size of a module after minification and gzipping

Install

$ npm install --save browserify-size

For the CLI:

$ npm install --global browserify-size

Usage

API

var browserifySize = require('browserify-size')

browserifySize('xtend', callback)
//=> callback(null, 366)

CLI

# arg
$ browserify-size xtend
# stdin
$ echo xtend | browserify-size
#=> 366 B

API

browserifySize(name, [options], callback) -> undefined

name

Required
Type: string

The package name or a path to a local package.

options
version

Type: string
Default: ''

The package version to use. Only applies when downloading from npm.

cwd

Type: string
Default: process.cwd()

callback

Required
Type: function
Arguments: err, bytes

A callback to be called with the number of bytes in the resulting bundle after minification and gzipping.

License

MIT © Ben Drucker

Current Tags

  • 1.1.0                                ...           latest (3 years ago)

9 Versions

  • 1.1.0                                ...           3 years ago
  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 27
Last Day 0
Last Week 9
Last Month 28
Dependencies (10)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |