Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/dotenv/mod.ts>loadSync

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function loadSync
import { loadSync } from "https://deno.land/std@0.184.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>>