
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
webpack-dependency-size
Advanced tools
Webpack plugin to get an overview of bundled dependencies and their size
Webpack plugin to get an overview of bundled dependencies and their size.
npm i webpack-dependency-size
In your Webpack config:
// 1. Import plugin
const DependencySize = require('webpack-dependency-size');
module.exports = {
...,
plugins: [
// 2. Add to plugins array
new DependencySize({
// Options
})
]
};
outputPath (dependency-size.json) JSON output path relative to Webpack output directory (output.path)gzip (false) Calculate gzipped sizeindent (2 spaces) JSON output indentation[package path] bundled-in package (sorted by size)
size human-readable net import size from packagefiles specific files imported from the package (sorted by size)
filepath bundled-in filesize human-readable sizereasons request sourcesTip: If the output is too large, I recommend using fx to navigate the JSON
{
"./node_modules/axios": {
"size": "40.15 KB",
"files": [
{
"filepath": "./node_modules/axios/lib/utils.js",
"size": "8.61 KB",
"reasons": [
"./node_modules/axios/lib/adapters/xhr.js",
...
]
},
...
]
},
"./node_modules/lodash": {
"size": "25.37 KB",
"files": [
{
"filepath": "./node_modules/lodash/_deburrLetter.js",
"size": "3.33 KB",
"reasons": [
"./node_modules/lodash/deburr.js"
]
},
...
]
},
...
}
MIT
FAQs
Track/evaluate dependencies bundled into a Webpack build
The npm package webpack-dependency-size receives a total of 20 weekly downloads. As such, webpack-dependency-size popularity was classified as not popular.
We found that webpack-dependency-size demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.