How can I check if an environment variable is set in node js?

How can I check if an environment variable is set in node js?

To check I use: if(process.env.CHECKEDKEY) { // It's set. } else { // Don't set. }

Leave a Reply

Your email address will not be published. Required fields are marked *




Enter Captcha Here :