dotenv
Version, currently 0.7.09 versions
github.com/gdotdesign/cr-dotenv
Loads ".env" files
99 stars
18 dependents
License: MIT
Nothing has been indexed for 0.7.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
dotenv:
github: gdotdesign/cr-dotenv
version: ~> 0.7.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.7.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# Dotenv

Loads `.env` file.
## Installation
Add this to your application's `shard.yml`:
```yaml
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`:
```crystal
require "dotenv"
# The default file is ".env"
Dotenv.load ".env-file"
```
See the API docs for more examples.
## Contributing
1. Fork it ( https://github.com/gdotdesign/cr-dotenv/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [[gdotdesign]](https://github.com/[gdotdesign]) Gusztáv Szikszai - creator, maintainer
- [[bonyiii]](https://github.com/[bonyiii])
- [[kriskova]](https://github.com/kriskova)
- [[neovintage]](https://github.com/[neovintage]) Rimas Silkaitis
- [[rodrigopinto]](https://github.com/[rodrigopinto]) Rodrigo Pinto
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.7.0- Tagged
- May 14, 2025
- Commit
c2253998797b- Indexed
- not yet
Dependents
and 6 more
Repository
github.com/gdotdesign/cr-dotenv
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 9