Env::Dotenv
raku-dotenv
image https://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