Skip to content

loadDescriptor

loadDescriptor(path, options?): Promise<{ basepath: string; descriptor: Record<string, any>; }>

Defined in: core/general/descriptor/load.ts:10

Load a descriptor (JSON Object) from a file or URL Uses dynamic imports to work in both Node.js and browser environments Supports HTTP, HTTPS, FTP, and FTPS protocols

string

boolean

Promise<{ basepath: string; descriptor: Record<string, any>; }>