项目作者: gdotdesign

项目描述 :
Loads ".env" files
高级语言: Crystal
项目地址: git://github.com/gdotdesign/cr-dotenv.git
创建时间: 2016-07-11T10:40:34Z
项目社区:https://github.com/gdotdesign/cr-dotenv

开源协议:MIT License

下载


Dotenv

Build Status

Loads .env file.

Installation

Add this to your application’s shard.yml:

  1. dependencies:
  2. dotenv:
  3. github: gdotdesign/cr-dotenv

Usage

Dotenv file example

  1. # Comments can be included for context
  2. #
  3. MY_VARIABLE=my-value
  4. # Empty Lines are also ignored
  5. #
  6. ANOTHER_VAR=awesome-value

Basic example

To load a file named .env-file:

  1. require "dotenv"
  2. # The default file is ".env"
  3. 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