UNPKG

load-dotenv

Version:

Automatically load the closest .env file

17 lines (13 loc) 344 B
'use strict'; var find = require('../find.js'); require('node:path'); require('node:url'); require('node:process'); require('node:fs'); const envFilePath = find.findEnv(); if (envFilePath) { require('dotenv').config({path: envFilePath}); } else { console.error('[load-dotenv] No .env file found'); } //# sourceMappingURL=optional.js.map