1.0.6 • Published 7 years ago

parse-ini v1.0.6

Weekly downloads
19
License
MIT
Repository
-
Last release
7 years ago

Easy and robust ini file parser for node.

Usage description

Given file.ini:

; file.ini
variable1 = value1
[MySectionName]
lastUsed=3

You can acces these ini file variables like this:

var parser = require('parse-ini');
var iniObj = parser.parse('file.ini');
console.log(iniObj.variable1);
console.log(iniObj.MySectionName.lastUsed);

Features

  • Variable key and value can contain nearly ANY character incl. whitespace
  • Variables can be defined in sections
  • Variables without section are available directly on parsed object as property
  • Line comments starting with ; are possible
1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago