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: 2 days ago
JSON representation
Loads environment variables from .env for deno projects.
- Host: GitHub
- URL: https://github.com/cardosomarcos/deno-dotenv
- Owner: cardosomarcos
- License: mit
- Created: 2019-01-07T13:54:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-01T02:49:49.000Z (about 5 years ago)
- Last Synced: 2024-08-02T10:20:24.657Z (3 months ago)
- Topics: deno, deno-dotenv, dotenv, typescript
- Language: TypeScript
- Size: 14.6 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-deno - cardosomarcos/deno-dotenv - 从.env文件中加载 Deno 项目的环境变量。 (Uncategorized / Uncategorized)
- awesome-deno - cardosomarcos/deno-dotenv - Loads environment variables from .env for Deno projects.![GitHub stars](https://img.shields.io/github/stars/cardosomarcos/deno-dotenv?style=plastic) (Modules / Online Playgrounds)
- awesome-deno - cardosomarcos/deno-dotenv - Loads environment variables from .env for Deno projects. (Modules / Utils)
- awesome-deno-cn - @cardosomarcos/deno-dotenv
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
```