I know it's possible to load variables from .env using dotenv, directly from running js inside atom via script atom package. But suddenly I made a change and I am uncapable to reproduce it once again. I checked the process.env variables and all from .env are gone. I use version "dotenv": "^10.0.0".
So.. is anyone being able to successfully perform this directly running inside atom using script atom package? On the contrary, it works perfectly if I run directly node mytest.js
require(dotenv).config();
console.log(process.env.PRIVATE_KEY);
Of course dotenv is appropriatelly inside node_modules, and .env is appropriatelly located in the top of the project,
PRIVATE_KEY=bla1Bla2Ble3Ble4
thank you