symfony-dotenv

1.0.1 • Public • Published

symfony-dotenv

Build Status Code Coverage

Package load all .env files as Symfony

In all environments, the following files are loaded if they exist, the latter taking precedence over the former:

  • .env contains default values for the environment variables needed by the app
  • .env.local uncommitted file with local overrides
  • .env.$APP_ENV committed environment-specific defaults
  • .env.$APP_ENV.local uncommitted environment-specific overrides

symfony doc

Install

# with npm 
npm install symfony-dotenv
 
# or with Yarn 
yarn add symfony-dotenv

Example

# simple
let envFactory = require('symfony-dotenv');
let config = envFactory(__dirname + '.env');

Package Sidebar

Install

npm i symfony-dotenv

Weekly Downloads

131

Version

1.0.1

License

MIT

Unpacked Size

5.71 kB

Total Files

11

Last publish

Collaborators

  • alexpts
  • docdoc-team