Class JsonFile

A class that represents the JSON file used as a simple database.

Hierarchy

  • JsonFile

Constructors

Properties

Accessors

Constructors

Properties

cmd: CommandBuilder<unknown[], OptionValues>

The parent CommandBuilder instance.

Accessors

  • get db(): JsonDB
  • A lazy-loaded instance of the JsonDB instance containing the data. Upon first property access, it is stored as a property on the instance. If the command is a subcommand, the root command's JsonDB instance is returned.

    Returns JsonDB

Generated using TypeDoc