kerimdzhanov / dotenv-flow

Loads environment variables from .env.[development|test|production][.local] files for Node.js® projects.
MIT License
862 stars 35 forks source link

feat: allow setting DOTENV_FLOW_SILENT without preregister #61

Closed jasonraimondi closed 1 year ago

jasonraimondi commented 2 years ago

This PR addresses some of the confusion surrounding DOTENV_FLOW_SILENT, as discussed in #52, allowing users to set the environment variable and register in code instead of at run.

process.env.DOTENV_FLOW_SILENT = 'silent';

require('dotenv-flow/config');
process.env.DOTENV_FLOW_SILENT = 'silent';

import "dotenv-flow/config";

Merge or close, no hard feelings either way. Thanks for the lib.

jasonraimondi commented 1 year ago

Is this project dead?