mysticonfig
🔮 The configuration loader for wizard.
A library to load .appnamerc
, .appnamerc.json
or .appnamerc.yaml
config file easily.
Gem's name inspired by cosmiconfig
Installation
gem install mysticonfig
Usage
require 'mysticonfig'
loader = Mysticonfig::Loader.new 'appname'
config = loader.load # Automatically detect and load config
json_config = loader.load_json # Only load config from JSON file
yaml_config = loader.load_yaml # Only load config from YAML file (.yaml or .yml)