Class Files

The Files() static class provides basic file operations.

Hierarchy

  • Files

Constructors

Properties

Methods

Constructors

Properties

debug: Debugger = ...

Methods

  • The readFile() method reads the file and returns parsed content.

    Type Parameters

    • T extends {
          [key: string]: any;
      }

    Parameters

    • path: string

      Exported file path.

    Returns null | {
        content: T;
        exported: number;
    }

  • The writeFiles() method exports provided data to the local machine.

    Parameters

    • c: {
          [key: string]: any;
      }

      Data in Record form.

      • [key: string]: any
    • dest: string

      File's destination

    Returns void

Generated using TypeDoc