bpkg Node.js Bundler

0.9.2 · abandoned · verified Sun Apr 19

bpkg is a command-line bundler and build tool specifically designed for Node.js projects, with an emphasis on handling native Node.js modules. It differentiates itself by requiring zero external dependencies for its operation, aiming for auditability and simplicity. It provides functionality similar to Browserify but with a stronger focus on Node.js-specific patterns, such as inlining or collecting native C++ bindings. The current version is v0.9.2. However, the project is considered abandoned; its GitHub repository is archived and marked as read-only, indicating no further development, bug fixes, or security patches will be provided. While it supports ES modules, full browser compatibility, and includes Babel/TypeScript/Uglify-JS support out of the box, its unmaintained status means these features may not be up-to-date with modern standards or environments.

Common errors

Warnings

Install

Quickstart

Demonstrates how to globally install bpkg and then bundle the 'bcrypto' package, including its native C++ modules, into a single JavaScript file.

npm install -g bpkg

# Example: Bundle the 'bcrypto' package, including its native modules
bpkg ./node_modules/bcrypto bcrypto_bundle.js

# Now, bcrypto_bundle.js can be used as a standalone module:
# const bcrypto = require('./bcrypto_bundle.js');
# console.log(bcrypto.randomBytes(32));

view raw JSON →