In my opinion, this sentence does not answer those questions.
All you have to care about is what to persist. This module will handle all the dull details like where and how.
Maybe that is intentional.
I just spent 2+ hours trying to understand when the file would be read. I found my answer by looking into the FAQ, which lead me to the env-paths module. Then I finally searched the source code, where I was able to identify my answers.
cwd
in the constructor.store
getter, which is executed in the constructor.store
setter, which is conditionally executed in the constructor.Add details to the Conf
constructor description. Maybe something like this?
Returns a new instance using the default values and file input. Will persist a default value if missing.
In the FAQ, find a way to suggest it's a good idea to keep configuration of your application in a single module. During development this pattern is useful for creating a default config by running node path/to/config-module.js
.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too