queen_env 0.0.2-beta copy "queen_env: ^0.0.2-beta" to clipboard
queen_env: ^0.0.2-beta copied to clipboard

.env files reader part of queen packages

Queen Env #

Part of Queen Packages 👑 #

Motivation #

  • this packages is made for place package
  • but you can use it as you wish

Content #

  • loadEnv() function to load the content of the .env file
  • env(String key) function to get the value by the key in case the key does not exist it will return empty string
  • envOrNull(String key) same as above but it will return null if the key does not exits

example #

await loadEnv();
final value = env('db_user');
print(value) // root

bonus #

this package will skip the comments on your .env file ⏭

0
likes
120
pub points
0%
popularity

Publisher

unverified uploader

.env files reader part of queen packages

Homepage

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on queen_env