Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dxx/src/lib/$shared.ts>$logger.env

🚀 (Deno) enhanced executor
Latest
function $logger.env
import { $logger } from "https://deno.land/x/dxx@rf/src/lib/$shared.ts";
const { env } = $logger;

Return the value of the environment variable varName (or undefined if non-existent or not-allowed access).

  • will not panic
  • will not prompt for permission if options.guard is true

Parameters

varName: string
optional
options: { guard: boolean; }