# env_applier
[](https://github.com/jmfiaschi/env_applier/actions/workflows/ci.yml)
[](https://github.com/semantic-release/semantic-release)

Apply environment variables on a string.
# Getting Started
## Quick Start
```rust
extern crate env_applier;
use env_applier::*;
fn main() -> () {
let config = r#"{"test":"{{ HOME }}"}"#.to_string().apply();
println!("My new config : {:?}", config);
}
```
or with prefix
```rust
extern crate env_applier;
use env_applier::*;
fn main() -> () {
let config = r#"{"test":"{{ HOME }}"}"#.to_string().apply_with_prefix("MY_PREFIX");
println!("My new config : {:?}", config);
}
```
## Useful link
* [Benchmark report](https://jmfiaschi.github.io/json_value_merge/bench/main/)
* [Package](https://crates.io/crates/json_value_merge)
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[Apache](https://choosealicense.com/licenses/apache-2.0/)
[MIT](https://choosealicense.com/licenses/mit/)