tusharmath/node-config-ts

Use environment variable USERNAME instead of USER on Windows OS

ivosh opened this issue · 4 comments

ivosh commented

Windows OS uses USERNAME environment variable to convey the same meaning as USER on UNIXes.

However node-config-ts currently tries to locate user-specific config only based on USER.
This suits Linux, *BSD and Solaris users, but not Windows ones.

I'd like propose to check also USERNAME environment variable if USER is not set.

ivosh commented

Will prepare a PR shortly.

ivosh commented

Thank you for merging PR #43.
Could we expect a release any soon?

🎉 This issue has been resolved in version 2.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀