npm.io
1.0.0 • Published 7 years ago

kvify

Licence
BSD-3-Clause
Version
1.0.0
Deps
0
Size
1 kB
Vulns
0
Weekly
0

kvify

Parse .ini format config files and JSON files with a single function

Given the contents of a file as a string, returns an object, whether that string was:

{
  "something":"cool"
}

returns what you would expect or...

something=oldschool
# with comments
and interestesting puntuation = !
# returns {something: "oldschool", "and interesting punctuation": "!" }

which you might not expect.