Bundle
A complete bundle including metadata and file data.
A complete bundle including metadata and file data.
Represents a .wvb bundle file loaded entirely into memory.
Use this when you need to access multiple files or build new bundles.
Constructor
new Bundle();Methods
Prop
Type
Examples
// Read a bundle from file
const bundle = await readBundle('app.wvb');
// Access files
const html = bundle.getData('/index.html');
if (html) {
console.log(html.toString('utf-8'));
}descriptor
const descriptor = bundle.descriptor();
const index = descriptor.index();getData
const data = bundle.getData('/index.html');
if (data) {
console.log(data.toString('utf-8'));
}