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

x/hex/src/lib/options/deps.ts>dotenv.config

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function dotenv.config
import { dotenv } from "https://deno.land/x/hex@0.6.5/src/lib/options/deps.ts";
const { config } = dotenv;

Parameters

optional
options: Omit<ConfigOptions, "restrictEnvAccessTo">

Returns

Promise<DotenvConfig>

Type Parameters

TEnvVar extends string

Parameters

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

Returns

Promise<StrictDotenvConfig<StrictEnvVarList<TEnvVar>>>