Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user to override location of configstore directory using an environment variable #74

Open
MatejKafka opened this issue Mar 24, 2021 · 0 comments

Comments

@MatejKafka
Copy link

Some users may have different opinion on where configstore should store the data. For example, using C:\Users\<name>\.config on Windows is unconventional and not really common, nor recommended (actually, it's an anti-pattern that only Linux tools use).

No matter the reason, the user may want to store the config somewhere else (my usecase is for portable packaging of Node.js, where I want it to store everything in a custom directory). Imo, configstore should support an environment variable like CONFIGSTORE_DIR and store the config elsewhere if it is set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant