Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/cardosomarcos/deno-dotenv

Loads environment variables from .env for deno projects.
https://github.com/cardosomarcos/deno-dotenv

deno deno-dotenv dotenv typescript

Last synced: about 2 months ago
JSON representation

Loads environment variables from .env for deno projects.

Lists

README

        

# deno-dotenv

[![Build Status](https://travis-ci.org/cardosomarcos/deno-dotenv.svg?branch=master)](https://travis-ci.org/cardosomarcos/deno-dotenv)

## Usage

```ts
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.

```sh
make setup
```