diff --git a/lib/ini.js b/lib/ini.js new file mode 100644 index 0000000000..6a1b18daa8 --- /dev/null +++ b/lib/ini.js @@ -0,0 +1,26 @@ +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