## snv - Simple .env Loader

This loads your .env files when developing. It's simple to use. Not much to it!

📦 **[crates.io](https://crates.io/crates/snv)** | 📚 **[docs.rs](https://docs.rs/snv)**


### Installation
```bash
cargo add snv
```

### Usage
```rust
use snv::load;

fn main() {
    let _ = load();
    let api_key = std::env::var("API_KEY").unwrap();
    println!("KEY: {}", api_key)
}

```

Alternatively, you can specify the relative path:

```rust
use snv::load_from;

fn main() {
    let _ = load_from("./secret/.env");

    let api_key = std::env::var("API_KEY").unwrap();
    println!("KEY: {}", api_key)
}

```

### Behavior
- Double quotes unescape `\n`, `\t`, `\r`, `\'`, and `\\`
- Single quotes are kept literal
- Empty lines and comments are skipped
- Duplicate keys use the last key's value
