Skip to content

Dotenv 2.0.1

Latest

Choose a tag to compare

@harshfeudal harshfeudal released this 06 Mar 08:11
b353e13

2.0.1 minor changes:

  • Add version
  • Add license on the top of the code
  • Modifying load() function with default read only 1 file (please set false if you want to read multiple environment files)

Note: A new dotenv-alt.h file has just added for non-OOP user if someone new in C++! You can even use it by this:

int main() {
  dotenv::load(".env");  // dotenv::load(".env", false) for read 1 file `.env` only
  std::cout << dotenv::get("YOUR_KEY") << '\n';

  return 0;
}