env-guard

v1.1.0 • by SecureWorks

Load environment variables from .env files with validation.

Installation

$ swalang install env-guard

Documentation

Env Guard

Safely manage your environment variables.

Usage

// in .env
// API_KEY=yoursecretkey

import env from 'env-guard';

// Access your variables
const apiKey = env.get('API_KEY');