{"repo":"kerimdzhanov/dotenv-flow","free":true,"listed":false,"github":"https://github.com/kerimdzhanov/dotenv-flow","clone":"git clone https://github.com/kerimdzhanov/dotenv-flow.git","description":"Loads environment variables from .env.[development|test|production][.local] files for Node.js® projects.","language":"JavaScript","stars":903,"topics":["nodejs","environment-variables","dotenv","node-env","env","configuration","environment","dotenv-flow","dx","express-js"],"license":"MIT","category":"dev-tools","readme_excerpt":"dotenv-flow dotenv is a zero-dependency npm module that loads environment variables from a .env file into process.env . dotenv-flow extends dotenv , adding support of NODE ENV -specific .env files like .env.development , .env.test , .env.stage , and .env.production , and the appropriate .env .local overrides. It allows your app to have multiple environments (like \"development\", \"test\", \"stage\", and \"production\" respectively) with selectively-adjusted environment variable setups and load them dynamically depending on the current NODE ENV . In addition to that, .env .local overrides add the ability to overwrite variables locally for development, testing, and debugging purposes (note that the appropriate .env .local entry should be added to your .gitignore ) . 🌱 Inspired by Ruby's dotenv (a.k.a. dotenv-rails ) gem , CreateReactApp's storing configs in .env files approach , the Twelve-Factor App methodology in general, and its store config in the environment section in particular. Installation Using NPM: Using Yarn: Using PNPM: Usage As early as possible in your Node.js app, initialize dotenv-flow : It will allow you to configure and use dotenv-flow from your code programmatically. If you're using TypeScript or ES Modules: Alternatively, you can use the default config entry point that allows you to configure dotenv-flow using command switch flags or predefined environment variables: Or even make dotenv-flow load environment variables for your app without adding it to the code us","default_branch":null,"files":null,"tree":[],"storefront":"/r/kerimdzhanov","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kerimdzhanov/dotenv-flow/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}