dotenv 4.2.0 copy "dotenv: ^4.2.0" to clipboard
dotenv: ^4.2.0 copied to clipboard

Load environment variables from a `.env` file.

changelog #

This project follows pub-flavored semantic versioning. (more)

4.2.0 #

  • [feat] add optional parameter quiet to DotEnv constructor
  • [feat] add --quiet arg to dotenv command

4.1.0 #

  • [feat] add DotEnv.getOrElse

4.0.1 #

  • [fix] return null on missing key

4.0.0 #

  • BREAKING: top-level functions have been removed. Use a DotEnv() instance instead.
  • BREAKING: the underlying Map<String, String> is no longer exposed. Use the forwarding methods on DotEnv instead.
  • BREAKING: by default, the underlying map does not include Platform.environment.
    • Libraries should use DotEnv(includePlatformEnvironment: true).
    • The dotenv command should use the --merge-platform-vars flag.
  • BREAKING: duplicate keys are now overwritten, instead of ignored.
  • [feat] the DotEnv.load() method accepts multiple file paths.

3.0.0 #

  • BREAKING: bumps min Dart version to 2.12 for nullsafety #27

2.0.0 #

  • BREAKING: change parser to handle = in values, e.g. base64 #21

1.0.0 #

  • Dart 2 compatible. #16

0.1.3+3

  • [docs] tweak README

0.1.3+2

  • [fix] don't throw if load fails #11

0.1.3+1

  • [fix] allow braces with ${var} substitution #10

0.1.3 #

  • [new] add command-line interface #7, #8
  • [deps] add args@v0.13

0.1.2 #

  • [new] support variable substitution from Platform.environment #6
  • [deps] drop logging

0.1.1+2

  • [fix] don't strip # inside quotes #5

0.1.1+1

  • [fix] whitespace causes quotes not to be stripped

0.1.1 #

  • [deprecated] Parser internals will become private. #3
    • #unquote, #strip, #swallow, #parseOne, #surroundingQuote, #interpolate
  • [new] support variable substitution
  • [deps] migrate to test
  • [deps] bump logging

0.1.0 #

Initial release.