lucky_env

An environment variable manager
0.1.0 released

Lucky::Env

Yet another environment variable manager. Read from a file like a .env

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      lucky_env:
        github: luckyframework/lucky_env
    
  2. Run shards install

Usage

Environment variable file

Create your "env" file. Name it whatever you want. Most common is .env.

The file is created with key/value pairs separated by =.

LUCKY_ENV=development
DEV_PORT=3002

Crystal code

require "lucky_env"

LuckyEnv.load(".env")

ENV["LUCKY_ENV"] == "development"

Development

Install shards shards install, and start making changes. Be sure to run ./bin/ameba, and the crystal formatter crystal tool format spec src.

Read through the issues for things you can work on. If you have an idea, feel free to open a new issue!

Contributing

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

lucky_env:
  github: luckyframework/lucky_env
  version: ~> 0.1.0
License MIT
Crystal >= 0.35.1

Authors

Dependencies 0

Development Dependencies 1

  • ameba ~> 0.13
    {'github' => 'crystal-ameba/ameba', 'version' => '~> 0.13'}

Dependents 5

Last synced .
search fire star recently