Configuration Options

The jsonverse class constructor accepts a configuration object with the following options:

  • dataFolderPath (string, default: “./Data”): The path to the folder where data files will be stored. If the folder doesn’t exist, it will be created.

  • logFolderPath (string, default: “./Logs”): The path to the folder where log files will be stored. If the folder doesn’t exist, it will be created.

  • activateLogs (boolean, default: true): Whether to enable logging to both the console and log files. Set to false to disable logging.

Example usage:

const myJsonverse = new jsonverse({
  dataFolderPath: "./myData",
  logFolderPath: "./myLogs",
  activateLogs: true,
});

You can customize these options when creating an instance of the jsonverse class to suit your project’s needs.