Module

std/dotenv/mod.ts>loadSync

Deno standard library
Go to Latest
function loadSync
import { loadSync } from "https://deno.land/std@0.177.0/dotenv/mod.ts";

Parameters

optional
options: Omit<LoadOptions, "restrictEnvAccessTo">

Returns

Record<string, string>

Type Parameters

TEnvVar extends string

Parameters

options: Omit<LoadOptions, "restrictEnvAccessTo"> & { restrictEnvAccessTo: StrictEnvVarList<TEnvVar>; }

Returns

StrictDotenvConfig<StrictEnvVarList<TEnvVar>>