
INI
Parsing and stringifying of .ini
data.
Similarly to the JSON
class in JavaScript, the INI
class provides methods to parse and stringify .ini
files.
const fields = INI.parse(`...`)const txt = INI.string(obj)
parsers
Section titled “parsers”The parsers also provide a merciful parser for .env
.
Returns undefined
for invalid inputs.
const fields = parsers.INI(env.files[0])