dotenv

Simple Crystal lang .env file loader

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

Repository

dotenv

Owner
Statistic
  • 0
  • 0
  • 0
  • 6
  • 0
  • over 3 years ago
  • June 20, 2019
License

MIT License

Links
Synced at

Thu, 07 Nov 2024 11:43:57 GMT

Languages