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

Package detail

with-env

MatthewSH340MITdeprecated1.1.1TypeScript support: included

Use dotenv package instead

Read and then apply .env file in the working directory, assuming the .env exists

process, environment, variable, env

readme

With .env

Read and then apply .env file in the working directory, assuming the .env exists

Usage

require("with-env")();
console.log(process.env.MY_VARIABLE);

changelog