@eggjs/loader-fs
v1.1.0
Published
Loader-facing filesystem abstraction for Egg
Readme
@eggjs/loader-fs
Loader-facing filesystem abstraction for Egg loaders and bundled runtimes.
Usage
import { RealLoaderFS, type LoaderFS } from '@eggjs/loader-fs';
const loaderFS: LoaderFS = new RealLoaderFS();LoaderFS intentionally covers only the operations required by loader code:
exists, stat, realpath, readJSON, glob, and loadFile. A source with
an authoritative, precomputed directory view may also implement
getKnownFiles; undefined means discovery should fall back to glob, while
an empty array means the directory is authoritatively empty.
