Relative Content

Tag Archive for node.jstypescriptdotenvesrun

not loading .env variables inside .ts file with dotenv

I’m trying to load a variable from the .env file inside my generate-keypair.ts file. I’m using dotenv to load the environment variables and esrun to run the TypeScript file. Both my .env file and TypeScript file are in the same directory.