Project

inireader

0.0
No commit activity in last 3 years
No release in over 3 years
Simple ruby ini reader
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

inireader

Because, sadly, not every configuration file is in yml.

Seriously barebones ini reader. It doesn't do much and is not robust or that trustworthy. That having been said, nothing else was really suiting my needs.

Reads from:

[section]
key1=val1
key2=val2
key1=val3

[section2]
;I am a comment. I can do anything here
key1=key2=val1
key3=val2

To:

{
  section: {
    key1: 'val3',
    key2: 'val2'
  },
  section2: {
    key1: 'key2-val1'
    key3: 'val2'
  }
}