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: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.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

  1. Add the dependency to your shard.yml:

    dependencies:
      dotenv:
        github: xtokio/dotenv
  2. 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

  1. Fork it (https://github.com/xtokio/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