dotenv
Version, currently master branch1 version
- master branchlatestApr 24, 2021
github.com/xtokio/dotenv
Simple Crystal lang .env file loader
0 stars
2 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
dotenv:
github: xtokio/dotenv
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
1.0.0- License
- MIT
- Author
- Luis Gomez
Dependencies
This version declares no dependencies.
README
dotenv
Simple Crystal lang .env file loader
Installation
-
Add the dependency to your
shard.yml:dependencies: dotenv: github: xtokio/dotenv -
Run
shards install
Usage
require "dotenv"
When .env file is in the same directory
Dotenv.load
When .env file is in a specific folder
Dotenv.load(path: "/var/www/app/.env")
Contributing
- Fork it (https://github.com/xtokio/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
- Luis GoĢmez - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Apr 24, 2021
- Crystal
1.0.0- Indexed
- yes
Dependents
Repository
github.com/xtokio/dotenv
Metadata
- Created
- Aug 18, 2026
- Updated
- Sep 26, 2026
- Synced
- Sep 26, 2026
- Versions
- 1