Aller au contenu
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

AI generated translation.

Analyse et formatage des données .ini.

De manière similaire à la classe JSON en JavaScript, la classe INI fournit des méthodes pour analyser et formater les fichiers .ini.

const fields = INI.parse(`...`)
const txt = INI.string(obj)

Les parsers fournissent également un analyseur tolérant pour les fichiers .env. Retourne undefined pour les entrées non valides.

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