A module dot-env that loads .env files and set it environment variables
npm install dotenv-config-loader.env files and set it environment variables
bash
npm install dotenv-config-loader
`
Usage
$3
`javascript
const { config } = require('env-config-loader');
// Load .env file and set environment variables
config();
`
$3
Loads a .env file and set it environment variables
Parameters:
- options (Object): Configuration options
- path (string): Path to .env file. Default: '.env'
Returns:
- Promise