Options
All
  • Public
  • Public/Protected
  • All
Menu

Module fs

Functions

readJsonFromFile

  • readJsonFromFile(path: string): Promise<ObjMap>
  • Reads json from file.

    Parameters

    • path: string

      Path to json file.

    Returns Promise<ObjMap>

    Parsed Json.

writeJsonToFile

  • writeJsonToFile(path: string, json: ObjMap): Promise<void>
  • Writes a JSON to file.

    Parameters

    • path: string

      Path of the file.

    • json: ObjMap

      Json object to be written.

    Returns Promise<void>