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

    Variable loadStringConst

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

    Type Declaration

      • (source: string, opts?: LoadOptions): Promise<Record<string, any>>
      • Loads CASC source text -- the same pipeline as loadFile, for a source that isn't (yet, or ever) in a file. Never cached. A bare import needs a meaningful root (default process.cwd()).

        Parameters

        • source: string

          a complete CASC document, version header included

        • Optionalopts: LoadOptions = {}

        Returns Promise<Record<string, any>>