2 unstable releases
0.2.0 | Nov 14, 2021 |
---|---|
0.1.0 | Mar 20, 2020 |
#6 in #blank
99 downloads per month
Used in 2 crates
7KB
93 lines
simple_env_load
A simple .env file loader
Description
Giving a sequence of env files from most general to most specific.
Operation
Parse each file for key val remove any comments blank lines and extra whitespace.
Syntax
TEST_DATA=bar # spaces are optional
## this is a comment
TEST_baz = "baz" # double quotes are removed
## above line was left intentionally blank
will produce:
Key | Value |
---|---|
TEST_DATA |
bar |
TEST_baz |
baz |
License: 0BSD
lib.rs
:
A simple .env file loader
Description
Giving a sequence of env files from most general to most specific.
Operation
Parse each file for key val remove any comments blank lines and extra whitespace.
Syntax
TEST_DATA=bar # spaces are optional
## this is a comment
TEST_BAZ = "baz" # double quotes are removed
TEST_BAR = 'bar' # single quotes are removed
## above line was left intentionally blank
will produce:
Key | Value |
---|---|
TEST_DATA |
bar |
TEST_BAZ |
baz |
TEST_BAR |
bar |