Last updated:
0 purchases
queen env
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
copied to clipboard
bonus #
this package will skip the comments on your .env file ⏭
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.