UNPKG

load-dotenv

Version:

Automatically load the closest .env file

17 lines (13 loc) 342 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 { throw new Error('[load-dotenv] No .env file found') } //# sourceMappingURL=index.js.map