#env-var #variables #dotenv #environment #loading #priority #load

rubenvy

Support for Ruby-style dotenv loading priorities utilizing dotenvy

2 releases

0.1.1 Aug 6, 2024
0.1.0 Aug 6, 2024

#499 in Configuration

MIT/Apache

4KB
53 lines

Support for Ruby-style dotenv loading priorities utilizing dotenvy.

Example

// Load environment variables with the following priority:
// 1. `.env.development.local`
// 2. `.env.local`
// 3. `.env.development`
// 4. `.env`
rubenvy::rubenvy(Environment::Development).unwrap();

Dependencies

~48KB