Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

crewdevio/dino_env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

8 Commits

Repository files navigation

dinoenv

manage environment variables with deno.

Usage

specify the path of the .env file and import dino_env.

install dino_env with trex using:

$ trex install --map dinoenv
import * as env from "dinoenv";
env.config();

or directly with the url.

import * as env from "https://deno.land/x/dinoenv/mod.ts";
env.config();

Config

you can specify the path of the .env file.

import * as env from "https://deno.land/x/dinoenv/mod.ts";
env.config({ path: "./environment/.env" });

note: by default use root project path

change the decode of the .env file

import * as env from "https://deno.land/x/dinoenv/mod.ts";
env.config({ path: "./environment/.env", encoding: "utf-8" });

note: by default use "utf-8"

permissions

--allow-read --allow-env

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /