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

x/bundlee/mod.ts>Bundlee#recursiveReaddir

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

Recursively read a directory and return a list of files.

Parameters

path: string

The directory path.

optional
extensionFilter: string[]

An optional list of extensions to filter files.

Returns

Promise<string[]>

A promise that resolves to an array of file paths.