@pumpkin-plugins/config API / load / ConfigStore
Interface: ConfigStore
Defined in: tools/config/src/load.ts:7
Where a config file lives. Kept abstract so the library doesn't depend on any filesystem.
Methods
read()
read():
string|undefined
Defined in: tools/config/src/load.ts:9
The file's text, or undefined when it doesn't exist.
Returns
string | undefined
write()
write(
text):void
Defined in: tools/config/src/load.ts:11
Replaces the file's text, creating the file if needed.
Parameters
text
string
Returns
void