loadSync
import { loadSync } from "jsr:@ende/dotenv";function ยท deprecated
function loadSync(options: LoadOptions = [UNSUPPORTED]): Record<string, string>Works identically to load, but synchronously.
options: LoadOptions = [UNSUPPORTED]Options for loading the environment variables.
Deprecated.
This will be removed in 0.227.0. Use the --env-file flag or
parseinstead. See the module documentation for migration notes.
Returns
The parsed environment variables.
Example: Usage
import { loadSync } from "@ende/dotenv";
const conf = loadSync();