Function readJsonFileSafe

  • Reads a JSON file and then parses it into an object. If an error occurs, it returns undefined.

    Type Parameters

    • T

    Parameters

    • filepath: string

      The path to the JSON file.

    • Optional options: IJFReadOptions

      Options for reading the JSON file.

    Returns Promise<T | void>

Generated using TypeDoc