0.0.2 • Published 10 years ago

flatini v0.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
10 years ago

flatini

An ini parser without dot notation nesting. Ripped from the decoding half of https://github.com/isaacs/ini.

# inifile.conf

global=yes it is

[a.section]
arr[]=1
arr[]=2
arr[]=3
// parse-conf.js

var flatini = require('flatini');
var fs = require('fs');

var parsed = flatini(fs.readFileSync('inifile.conf', 'utf8'));
console.log(parsed);
$ node parse-conf.js 
{ global: 'yes it is', 'a.section': { arr: [ '1', '2', '3' ] } }
$