eagar

A simple configuration-helper library for Crystal apps

eagar

A crystal library to help load configuration files.

The Eagar module contains functions to locate configuration files in JSON, YAML or INI format, to sort them according to priority, to parse their contents and ultimately to return hash of hashes of key-value pairs which can be used as the basis for a configuration.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      eagar:
        github: bjjb/eagar
    
  2. Run shards install

Usage

require "eagar"
File.open(".foo.ini", "w", &.puts(%(bar = baz)))
Eagar.configuration("foo")[""]["bar"] #=> "baz"

Development

git clone https://github.com/bjjb/eagar
cd eagar
# ... make your changes
crystal spec
  • bjjb - creator and maintainer
Repository

eagar

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • about 9 hours ago
  • August 27, 2025
License

MIT License

Links
Synced at

Wed, 27 Aug 2025 13:57:41 GMT

Languages