
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
d3-bundler
Advanced tools
A Rollup-based bundler for D3 modules.
To install:
npm install -g d3-bundler
To use, define an ES6 module that imports the D3 code you need and defines the corresponding exports. For example, try this index.js:
export {
event,
select,
selectAll
} from "d3-selection";
Make sure you have the desired D3 modules installed:
npm install d3-selection
Build your bundle:
d3-bundler -o d3.js -- index.js
Or, minified:
npm install -g uglify-js
d3-bundler -o d3.js -- index.js && uglifyjs -c -m -o d3.min.js -- d3.js
Have a nice day!
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="d3.js"></script>
<script>
d3.select("body").append("h1").text("Hello, world!");
</script>
d3-bundler [options] -- [file]
The input file should be an ES6 module that defines your exports. See the examples. If not specified, it defaults to “index.js”.
Options:
Specify the path to the generated bundle file. Use “-” for stdout.
Specify the name of the output module. This determines the name of the exported global in certain output formats.
If true, keep external dependencies external. This enables the -f option, and is useful if you want to generate a CommonJS build or use a different bundler.
Specify the output format of the generated JavaScript. See Rollup for supported values. This can only be used when inlining external dependencies (i.e., without -x).
FAQs
A Rollup-based bundler for D3 modules.
We found that d3-bundler 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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.