flatini

0.0.2 • Public • Published

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' ] } }
$

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    2
  • 0.0.1
    3

Package Sidebar

Install

npm i flatini

Weekly Downloads

5

Version

0.0.2

License

ISC

Last publish

Collaborators

  • gsf