rdotenv

Crates.iordotenv
lib.rsrdotenv
version0.1.4
sourcesrc
created_at2023-10-01 12:54:39.087388
updated_at2023-10-01 13:11:48.854479
descriptionA simple rust library for parsing .env files
homepage
repositoryhttps://github.com/0xleft/rdotenv
max_upload_size
id989227
size5,167
left (0xleft)

documentation

README

rdotenv

A very simple .env file parser my rust projects.

Usage

main.rs

use rdotenv::DotEnv;

fn main() {
    let mut env = DotEnv::new();
    env.load();

    println!("{}", env.get("TEST_KEY"));
}

.env

TEST_KEY=TEST_VALUE

output

TEST_VALUE

License

MIT License

Contributing

Feel free.

Commit count: 9

cargo fmt