Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: 2 days ago
JSON representation

Loads environment variables from .env for deno projects.

Awesome Lists containing this project

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