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.216.0/dotenv/mod.ts";

Works identically to load, but synchronously.

Parameters

optional
unnamed 0: LoadOptions = [UNSUPPORTED]

Returns

Record<string, string>