nconf not loading file synchronously

604 views Asked by At

Trying to use nconf to load a file into memory and use that for configuration. However, every time I call nconf.get it returns undefined leading me to believe I'm being dealt an async function. The path I'm using seems correct.

I noticed the FileStore has a loadSync method but I'm not sure how to use it.

0

There are 0 answers