TS-Node Dotenv
ts-node -r dotenv/config . dotenv_config_path=./.env
Talented Tapir
ts-node -r dotenv/config . dotenv_config_path=./.env
npm install dotenv;
OR
yarn add dotenv;
import * as dotenv from 'dotenv';
//inside your starter code, do this
...
...
dotenv.config();
...