1.0.3 • Published 2 years ago

@alexconlag/dotenv v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

dotenv

This package is a zero-dependency module that loads environment variables from a .env file into process.env.

Install

$ npm i @alexconlag/dotenv

Usage

Create a .env file in the root of your project:

SECRET_KEY=YOURSECRETKEYGOESHERE
OTHER_VAR=HEREYOURVAR

As early as possible in your application, import and configure dotenv:

import { config } from "@alexconlag/dotenv";
config();

console.log(process.env);
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago