node-cooper - v0.2.0
    Preparing search index...

    Variable loadFileConst

    loadFile: (file: string, opts?: LoadOptions) => Promise<Record<string, any>> = cooper.loadFile

    Type Declaration

      • (file: string, opts?: LoadOptions): Promise<Record<string, any>>
      • Reads and loads the CASC file at file. Bare imports resolve relative to its directory; an import cycle back to it is caught on the first repeat.

        Caches the pre-resolve tree by default (see Cache), keyed by the modification times of the file and everything it imports; ${...} values are re-resolved on every call regardless. Pass cache: false for a guaranteed-fresh parse.

        Parameters

        Returns Promise<Record<string, any>>