Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

symfony-dotenv

Package Overview
Dependencies
1
Maintainers
2
Versions
2
Issues
File Explorer

Advanced tools

symfony-dotenv

Loads environment variables from .env file as Symfony

    1.0.1latest

Version published
Maintainers
2
Yearly downloads
10,545
increased by577.7%

Weekly downloads

Changelog

Source

1.0.1

update dependencies

Readme

Source

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');

Keywords

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc