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
Parameters
Section titled “Parameters”string
options?
Section titled “options?”onlyRemote?
Section titled “onlyRemote?”boolean
Returns
Section titled “Returns”Promise
<{ basepath
: string
; descriptor
: Record
<string
, any
>; }>