Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/museun/simple_env_load
a simple .env file loader
https://github.com/museun/simple_env_load
Last synced: 13 days ago
JSON representation
a simple .env file loader
- Host: GitHub
- URL: https://github.com/museun/simple_env_load
- Owner: museun
- License: 0bsd
- Created: 2020-03-20T19:30:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-02T23:37:49.000Z (about 2 years ago)
- Last Synced: 2024-08-09T09:36:44.308Z (3 months ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple_env_load
[![Documentation][docs_badge]][docs]
[![Crates][crates_badge]][crates]
[![Actions][actions_badge]][actions]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
```rust
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
[docs_badge]: https://docs.rs/simple_env_load/badge.svg
[docs]: https://docs.rs/simple_env_load
[crates_badge]: https://img.shields.io/crates/v/simple_env_load.svg
[crates]: https://crates.io/crates/simple_env_load
[actions_badge]: https://github.com/museun/simple_env_load/workflows/Rust/badge.svg
[actions]: https://github.com/museun/simple_env_load/actions