MCPcopy
hub / github.com/motdotla/dotenv / _dotenvKey

Function _dotenvKey

lib/main.js:134–147  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

132}
133
134function _dotenvKey (options) {
135 // prioritize developer directly setting options.DOTENV_KEY
136 if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
137 return options.DOTENV_KEY
138 }
139
140 // secondary infra already contains a DOTENV_KEY environment variable
141 if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
142 return process.env.DOTENV_KEY
143 }
144
145 // fallback to empty string
146 return ''
147}
148
149function _instructions (result, dotenvKey) {
150 // Parse DOTENV_KEY. Format is a URI

Callers 2

_parseVaultFunction · 0.85
configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…