Skip to content

Latest commit

 

History

History
50 lines (27 loc) · 933 Bytes

File metadata and controls

50 lines (27 loc) · 933 Bytes

Bot / structs/Read / Read

Class: Read

structs/Read.Read

A utility class for reading files.

This class provides helper methods for reading various file types from the file system, additionally implementing error handling and validation.

Table of contents

Constructors

Methods

Constructors

constructor

new Read()

Methods

JSON

Static JSON(path): JsonObject

Imports the contents of the specified JSON file.

Parameters

Name Type Description
path string The path to the JSON file.

Returns

JsonObject

The contents of the JSON file.

Defined in

src/structs/Read.ts:21