How do you unset an environment variable in Node.js?
I've tried:
process.env.MYVAR = undefined
But that doesn't unset it, it appears as follows:
console.log('xx' + process.env.MYVAR + 'xx');
Output is:
xxundefinedxx
I want:
xxxx
How do I make this work?
Copyright Notice:Content Author:「danday74」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/43314209/node-js-unset-environment-variable