Registry / web-framework / bpm-bundle

bpm-bundle

JSON →
library2.1.0jsnpmunverified

Episode bundler for brainpm (BPM), the package manager for the brain. Version 2.1.0 is the latest stable. Transforms an episode repository (including package.json) into publishable file bundles for distribution via bpm-github or other publishers. Part of the BPM ecosystem, specialized for brain package format; no direct alternatives.

npm install bpm-bundle
INSTALL
IMPORT
SIG · BPM-BUNDLE
B
bpm-bundle
web-frameworkjavascriptv2.1.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import bundle from 'bpm-bundle'
const bundle = require('bpm-bundle')
ESM-only package. Default export is the bundler function.
bundle
import { bundle } from 'bpm-bundle'
import bundle from 'bpm-bundle' (if using named export)
Also supports named export for tree-shaking.
type BundleOptions
import type { BundleOptions } from 'bpm-bundle'
import { BundleOptions } from 'bpm-bundle' (runtime error, only a type)
TypeScript users must use 'import type' for interfaces.

Demonstrates importing the default bundler, reading an episode, and writing the output zip file.

import bundle from 'bpm-bundle'; import { readFileSync, writeFileSync } from 'fs'; const episodePath = './my-episode'; const options = { format: 'github', version: '2.1.0' }; try { const result = bundle(episodePath, options); console.log('Bundled files:', Object.keys(result)); writeFileSync('./dist/bundle.zip', result.zip); } catch (err) { console.error('Bundling failed:', err); }
bpm-bundle --version
Debug
Known issues
breakingImport syntax changed from CommonJS to ESM in v2.0. require() throws error.
fix
Use import instead of require().
affects: >=2.0.0
deprecatedThe 'bundleFormat' option was renamed to 'format' in v2.0.
fix
Use 'format' instead of 'bundleFormat'.
affects: >=1.0.0 <2.0.0
gotchabpm-bundle expects a valid brainpm package.json. Missing 'brainpm' field causes silent failure.
fix
Ensure package.json includes a 'brainpm' configuration object.
affects: all
Errors
Common errors & fixes
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'bpm-bundle'
Package not installed or wrong import path in ESM context
fix
Run npm install bpm-bundle and use import syntax.
TypeError: bundle is not a function
Using named import when importing as default
fix
Use import bundle from 'bpm-bundle' instead of import { bundle } from 'bpm-bundle'.
SyntaxError: Unexpected token 'export'
Using ESM syntax in a CommonJS file
fix
Add "type": "module" to package.json or use require with dynamic import.
Upgrade
Version history
2.1.0latest on npm
Audit
Dependencies
brainpmrequiredCore BPM runtime required for bundling
Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
bpm-bundle — npm install bpm-bundle · libregistry