tus-node-server
tus-node-server copied to clipboard
Allow setting custom paths for the configstore
Storing Metadata in ~/.config/configstore
is rather impractical.
You should at least provide an option to set the path.
Completely agree. Feel free to open a PR with that option!
In fact, "Allow setting custom paths for the configstore" is about changing configstore
with another solution. To quote configstore package,
Easily load and persist config without having to think about where and how
If you don't want the default path, just don't use configstore
package.
I will try to come back with a more solution oriented comment soon.
Perhaps https://www.npmjs.com/package/rc is helpful here?
You should be able to change the configuration directory using the XDG_CONFIG_HOME
environment variable (we are using configstore internally which can be configured in that way).
That being said it might still be beneficial to switch to another storage mode.
It's now possible to provide your own configstore.