How to fix Depricated warning message (node:6136) DeprecationWarning: 'GLOBAL' is deprecated, use 'global'
In my code I have used something like below
// initializing globals
GLOBAL.user_session= {};
GLOBAL.config= require('./config/config.js');
So how to fix warning message?
global.user_session= {};
global.config= require('./config/config.js');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With