Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bundlesize

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bundlesize

Keep your library size in check

  • 0.5.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
52K
increased by7.1%
Maintainers
1
Weekly downloads
 
Created
Source



Keep your bundle size in check

 

Build Status

 

minimal setup
npm install bundlesize --save

 

usage

Add it to your scripts in package.json

"scripts": {
  "test": "bundlesize"
}

 

configuration

Add the path and threshold in your package.json

{
  "name": "your cool library",
  "version": "1.1.2",
  "bundlesize": [
    {
      "path": "./dist.js",
      "threshold": "3 Kb"
    }
  ]
}

 

build status

build status

Works only with Travis CI for now.

  • Enable Build branch updates and Build pull request updates on travis-ci. (screenshot)
  • Authorize bundlesize for status access, copy the token provided.
  • Add this token as github_token as environment parameter in travis settings

(Ask me for help if you're stuck)

 

like it?

:star: this repo

 

todo
  • work with other CI tools (circle, appveyor, etc.)
  • automate setup (setting env_var)

 

license

MIT © siddharthkp

Keywords

FAQs

Package last updated on 29 Jun 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc