dotenvs
Version, currently 1.0.01 version
- 1.0.0latestAug 15, 2018
github.com/qbart/dotenvs-cr
Dotenv loader for Crystal
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
dotenvs:
github: qbart/dotenvs-cr
version: ~> 1.0.0Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- Bartłomiej Wójtowicz
Dependencies
Runtime Dependencies
- dotenv*github: gdotdesign/cr-dotenv
README
dotenvs
Small extension to cr-dotenv that loads .env files in the following order:
.env.env.development- depends on environment.env.development.local- depends on environment, file should be excluded from repo
Installation
Add this to your application's shard.yml:
dependencies:
dotenvs:
github: qbart/dotenvs-cr
Usage
require "dotenvs"
Dotenvs.load("development")
Dotenvs.load(ENV["KEMAL_ENV"])
Dotenvs.load(ENV.fetch("KEMAL_ENV", "development"))
# ...
# production env is skipped, if you want to load .env files anyway, you can do:
Dotenvs.load(ENV["KEMAL_ENV"], allow_production: true) # default is false
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.0.0- Tagged
- Aug 15, 2018
- Commit
00d344d11b11- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/qbart/dotenvs-cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 1