OptionalaccessOptionalclearRead an empty config when the file cannot be deserialized or fails schema
validation, instead of throwing a ConfError. The next write copies
the invalid file to <name>.invalid-<timestamp>.<ext> next to it, then
replaces it. File system errors are still thrown.
OptionalconfigFile mode used when creating the config file.
OptionalconfigConfig file name without extension.
OptionalcwdDirectory where the config file is stored. Overrides projectName.
OptionaldeserializeCustom deserializer. Defaults to extended JSON via parse.
OptionalfileConfig file extension without a leading dot.
OptionallockHold an exclusive lock file (<path>.lock) while reading, changing and
writing the config, so concurrent processes don't lose each other's
writes. Reads never lock.
OptionalprojectProject name used to resolve the default config directory. Required unless cwd is set.
OptionalprojectSuffix appended to projectName in the config path.
OptionalschemaStandard Schema used to validate the full config object.
OptionalserializeCustom serializer. Defaults to extended JSON via stringify.
OptionalwatchWatch the config file for external changes. Creates an empty config file when there is none, as the watcher needs a target.
Access nested properties using dot notation.