Skip to content
Caffeine Docs

Config

Caffeine comes with a built-in JSON config library.

As a config file is automatically created when you create your Interface, it is unlikely you will need to create your own separate configuration file.

Configuration Files

New

Caffeine.Config:New(name) : ConfigObject

This will create a new JSON file with the specified name.

Read

ConfigObject:Read(key, default) : value or default

Write

ConfigObject:Write(key, value)