JS Utils Kit
    Preparing search index...

    Function readJsonFile

    • Read and parse a JSON file.

      Type Parameters

      • T = unknown

        Expected type of the parsed JSON content.

      Parameters

      • path: string

        Path to the JSON file

      Returns Promise<T>

      Parsed JSON content as type T.

      Will throw if the file cannot be read or contains invalid JSON.