Skip to content
An 8-bit style icon depicts a white sheet of paper split into two parts: the left features horizontal colored stripes resembling lines in a .ini file, while the right displays a basic code bracket symbol. A geometric gear and a checkmark appear at one corner, implying settings parsing and successful validation. The design is minimal, flat, uses five corporate colors, and has no background. Icon size is 128x128 pixels.

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)

The parsers also provide a merciful parser for .env. Returns undefined for invalid inputs.

const fields = parsers.INI(env.files[0])