
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
rollup-plugin-stats
Advanced tools
Output Rollup stats JSON file
npm install --dev rollup-plugin-stats
or
yarn add --dev rollup-plugin-stats
// rollup.config.mjs
import stats from 'rollup-plugin-stats';
export default {
plugins: [
// add it as the last plugin
stats(),
],
};
// rollup.config.js
const stats = require('rollup-plugin-stats');
module.exports = {
plugins: [
// add it as the last plugin
stats(),
],
};
fileName
- the JSON filepath relative to the build folder or absolute(default: stats.json
)write
- format and write the stats to disk(default: fs.write(filename, JSON.stringify(stats, null, 2))
)stats
source
- output asset/chunk/module source (default false
)excludeAssets
- exclude matching assets: string | RegExp | ((filepath: string) => boolean) | Array<string | RegExp | ((filepath: string) => boolean)>
excludeModules
- exclude matching modules: string | RegExp | ((filepath: string) => boolean) | Array<string | RegExp | ((filepath: string) => boolean)>
Generate rollup stats JSON file with a bundle-stats webpack supported structure.
Analyze webpack stats(bundle size, assets, modules, packages) and compare the results between different builds. Support for webpack, rspack, vite, rollup.
FAQs
Output Rollup stats
The npm package rollup-plugin-stats receives a total of 13,082 weekly downloads. As such, rollup-plugin-stats popularity was classified as popular.
We found that rollup-plugin-stats demonstrated a healthy version release cadence and project activity because the last version was released less than 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 Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.