admwrd / deno-dotenv

Loads environment variables from .env for deno projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deno-dotenv

Build Status

Usage

import dotenv from "https://raw.githubusercontent.com/cardosomarcos/deno-dotenv/master/index.ts";

const env = dotenv();

console.log({ username: env.DB_USERNAME });

Contribution F.A.Q

How to resolve Cannot find module 'deno'.?

Generate deno type definitions with the command bellow.

make setup

About

Loads environment variables from .env for deno projects.

License:MIT License


Languages

Language:TypeScript 98.3%Language:Makefile 1.7%