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

x/ayonli_jsext/runtime.ts>env

A JavaScript extension package for building strong and modern applications.
Latest
function env
import { env } from "https://deno.land/x/ayonli_jsext@v0.9.72/runtime.ts";

Returns all environment variables in an object.

Returns

{ [name: string]: string; }

Returns a specific environment variable.

Parameters

name: string

Returns

string | undefined

Sets the value of a specific environment variable.

Parameters

name: string
value: string

Returns

undefined

Sets the values of multiple environment variables, could be used to load environment variables where there is no native support, e.g the browser or Cloudflare Workers.

Parameters

obj: object