Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/bundlee/mod.ts>Bundlee#bundle

Bundle static assets to a single JSON-file.
Go to Latest
method Bundlee.prototype.bundle
import { Bundlee } from "https://deno.land/x/bundlee@0.9.3/mod.ts";

Bundle files from a directory into a single JSON object.

Parameters

basePath: string
  • The base path for file paths.
path: string
  • The directory path.
optional
exts: string[]
  • An optional list of extensions to filter files.

Returns

Promise<Record<string, Metadata>>
  • A promise that resolves to a JSON object containing encoded file contents.