exports.parse = function(d) { var trim = function(str) { return str.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); } var ini = {'-':{}}; var section = '-'; var lines = d.split('\n'); for (var i=0; i