Popularity
8.5
Declining
Activity
0.0
Stable
94
4
11
Programming language: Crystal
License: MIT License
Tags:
Configuration
Latest version: v0.7.0
cr-dotenv alternatives and similar shards
Based on the "Configuration" category.
Alternatively, view cr-dotenv alternatives based on common mentions on social networks and blogs.
-
totem
Crystal configuration with spirit. Load and parse configuration in JSON, YAML, dotenv formats.
Learn any GitHub repo in 59 seconds
Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
Promo
getonboard.dev
Do you think we are missing an alternative of cr-dotenv or a related project?
README
Dotenv
Loads .env
file.
Installation
Add this to your application's shard.yml
:
dependencies:
dotenv:
github: gdotdesign/cr-dotenv
Usage
Dotenv file example
# Comments can be included for context
#
MY_VARIABLE=my-value
# Empty Lines are also ignored
#
ANOTHER_VAR=awesome-value
Basic example
To load a file named .env-file
:
require "dotenv"
# The default file is ".env"
Dotenv.load ".env-file"
See the API docs for more examples.
Contributing
- Fork it ( https://github.com/gdotdesign/cr-dotenv/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- [gdotdesign] Gusztáv Szikszai - creator, maintainer
- [bonyiii]
- [kriskova]
- [neovintage] Rimas Silkaitis
- [rodrigopinto] Rodrigo Pinto