Skip to main content

readJson

Callable

  • readJson<T>(path: string): Promise<T>

  • Reads a JSON file and returns its contents (async)


    Type parameters

    • T

    Parameters

    • path: string

      The path to be read

    Returns Promise<T>

    The contents of the file