tarlatan
    Preparing search index...
    • Reads the whole file at path as UTF-8 text; throws when it cannot be read.

      Parameters

      • path: string
      • encoding: "utf8"

      Returns string

    • Reads the whole file at a path, or from an open file descriptor, as raw bytes with no decoding; throws when it cannot be read.

      Parameters

      • file: string | number

      Returns Uint8Array

    • Reads the whole file at path as UTF-8 text; throws when it cannot be read.

      Parameters

      • path: string
      • encoding: "utf8"

      Returns string