README
raku-dotenv
image i_raku_land_zef_rawleyfowler_humming_bird_badges_version_ not found
A Raku shim to load environment variables from .env into ENV in development. Based on the original bkeepers module written in Ruby.
Synopsis
use v6;
use Env::Dotenv;
# This way
dotenv_load();
# Or this way
my $dotenv = Dotenv.new();
$dotenv.load();
# Attempt to access a variable that had been set in your local .env file
if %*ENV<MY_SECRET_INFO> {
say %*ENV<MY_SECRET_INFO>;
}
Installation
zef install -v https://github.com/ispyhumanfly/raku-dotenv.git