| 1 | import type { URL } from 'url'; |
| 2 | |
| 3 | export interface DotenvParseOptions { |
| 4 | /** |
| 5 | * Override any environment variables that have already been set on your machine with values from your .env file. |
| 6 | * @default false |
| 7 | * @example require('@dotenvx/dotenvx').config({ overload: true }) |
| 8 | * @alias overload |
| 9 | */ |
| 10 | overload?: boolean; |
| 11 | |
| 12 | /** |
| 13 | * @default false |
| 14 | * @alias override |
| 15 | */ |
| 16 | override?: boolean; |
| 17 | |
| 18 | /** |
| 19 | * Specify an object to read existing environment variables from. Defaults to process.env environment variables. |
| 20 | * |
| 21 | * @default process.env |
| 22 | * @example const processEnv = {}; require('@dotenvx/dotenvx').parse('HELLO=World', { processEnv: processEnv }) |
| 23 | */ |
| 24 | processEnv?: DotenvPopulateInput; |
| 25 | |
| 26 | /** |
| 27 | * Specify a privateKey to decrypt any encrypted contents with. |
| 28 | * |
| 29 | * @default undefined |
| 30 | * @example require('@dotenvx/dotenvx').parse('HELLO="encrypted:BE9Y7LKANx77X1pv1HnEoil93fPa5c9rpL/1ps48uaRT9zM8VR6mHx9yM+HktKdsPGIZELuZ7rr2mn1gScsmWitppAgE/1lVprNYBCqiYeaTcKXjDUXU5LfsEsflnAsDhT/kWG1l"', { privateKey: 'a4547dcd9d3429615a3649bb79e87edb62ee6a74b007075e9141ae44f5fb412c' }) |
| 31 | */ |
| 32 | privateKey?: string; |
| 33 | } |
| 34 | |
| 35 | export interface DotenvParseOutput { |
| 36 | [name: string]: string; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…