Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/pup/plugins/web-interface/deps.ts>Bundlee#bundle

Universal process manager built in Deno
Go to Latest
method Bundlee.prototype.bundle
import { Bundlee } from "https://deno.land/x/pup@1.0.0-rc.4/plugins/web-interface/deps.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.