Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

process-env

aniftyco6.1k2.0.2TypeScript support: included

dotenv file loading

readme

process-env

dotenv file loading

Clone of @next/env for loading dotenv files with proper priorities, for usage outside of Next.js

Intallation

npm install --save add process-env

Usage

import { loadEnvConfig } from 'process-env';

loadEnvConfig(__dirname);