Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
build-size
Advanced tools
Readme
Parse and compare build size
Install locally with npm:
$ npm install --save-dev build-size
Install globally with npm:
$ npm install --global build-size
Locally with npm:
# Display help
$ npm run build-size -- --help
# Parse
$ npm run build-size -- parse ./previous/**/*.js ./previous/**/*.css > previous.json
$ npm run build-size -- parse ./new/**/*.js ./new/**/*.css > new.json
# Compare
$ npm run build-size -- compare previous.json new.json
Globally:
# Display help
$ build-size --help
# Parse
$ build-size parse ./previous/**/*.js ./previous/**/*.css > previous.json
$ build-size parse ./new/**/*.js ./new/**/*.css > new.json
# Compare
$ build-size compare previous.json new.json
Parse:
$ build-size parse js/*.js css/*.css
{
"js/app.js": 133104,
"js/manifest.js": 1478,
"js/vendor.js": 466292,
"css/app.css": 24491
}
Compare:
$ build-size compare previous.json new.json
This change will increase the build size from 610.71 KB to 616.04 KB, an increase of 5.33 KB \(1%\)
File name | Previous size | New size | Change
--- | --- | --- | ---
js\/app.js | 129.98 KB | 135.32 KB | ![▲](https://swisnl.github.io/build-size/images/increase.svg "Increase") 5.33 KB \(4%\)
js\/manifest.js | 1.44 KB | 1.45 KB | ![▲](https://swisnl.github.io/build-size/images/increase.svg "Increase") 2 B \(0%\)
js\/vendor.js | 455.36 KB | 455.36 KB | 0 B \(0%\)
css\/app.css | 23.92 KB | 23.92 KB | 0 B \(0%\)
$ npm test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email security@swis.nl instead of using the issue tracker.
Inspired by BuildSize and similar projects, such as bundlesize and Size Limit.
The MIT License (MIT). Please see License File for more information.
SWIS is a web agency from Leiden, the Netherlands. We love working with open source software.
FAQs
Parse and compare build sizes
The npm package build-size receives a total of 1 weekly downloads. As such, build-size popularity was classified as not popular.
We found that build-size demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.