Skip to main content
Module

x/dtils/env.ts

The best unofficial library of utilities for Deno applications
Go to Latest
import * as dtils from "https://deno.land/x/dtils@2.1.1/env.ts";

Provides a high-level api for standard application env variables (TODO reference blog post of standards)

We make heavy use of caching in this module because we don't want to overload the user with permission prompts to these env vars

Functions

Get the current env level ($ENV). Assumes "dev" if invalid or unspecified

Get the current log level ($LOG_LEVEL). Assumes "normal" if invalid or unspecified

Get the current deployment disposition ($DEPLOY). Assumes false if unset, 0, or false

Get the current disposition for reloading dependencies ($RELOAD_DEPS). Assumes false if unset, 0, or false

Get the standard application env vars (ENV, RELOAD_DEPS, DEPLOY, and LOG_LEVEL) as an env object

Type Aliases

Provides a high-level api for standard application env variables (TODO reference blog post of standards)