I would recommend that for questions specific to Node itself like this, you should check out
https://github.com/nodejs/help first before asking here. There, they can help you with a wide variety of things, including things like this, and you're more likely to get better answers out of it. They can help you with both native addons and JavaScript-related questions, and they can help you with quite a few things.
Also, I thought I'd point out that for this particular case, if your server is in fact Node, I'd suggest using `process.env` instead (see
https://nodejs.org/api/process.html#process_process_env). This does basically what you want, without much ceremony (and as a couple pros, it works across all platforms and it doesn't even require any C++ code).