I read an ini file with duplicate keys, ie:
[SESSION]
key1=value1
key1=value2222
xxx=yyy
I used the code below to get the contents of the ini file
var fs = require('fs')
, ini = require('ini')
var config = ini.parse(fs.readFileSync('./config.ini', 'utf-8'))
In case the key is duplicate, the last value is taken.
The result is:
[SESSION]
key1=value2222
xxx=yyy
I would like to get the first value , is it configurable?
Thanks in advance!
[SESSION]
key1=value1
xxx=yyy