node-iniparser
Next up, I looked at node-iniparser, with some test data I happened to have readily available. In order to get it to work, I had to make some changes for Python ConfigParser compatibility:
- Param can be separated from value with
=
or:
- Comments may begin with
;
or#
- Continuation lines now supported
- Orphan options placed in
DEFAULT
section - Blank lines no longer terminate a section
The first three are arguably enhancements. The last two are backwards incompatible change that may not affect everybody. If there is a desire to support orphan parameters as peers to sections, that would complicate continuation line handling a bit.
It is a bit disquieting that this project has no test cases.