Hello @kartik,
Yes,you can read environment variables in Node.js code as:
process.env.ENV_VARIABLE
Where ENV_VARIABLE is the name of the variable you wish to access.
For example:
var mode = process.env.NODE_ENV;
var apiKey = process.env.apiKey;
Hope it helps!!
Thank You!!