A Prettier plugin for formatting INI configuration files. Current stable version is 1.3.0, released under the MIT License. It integrates seamlessly with the Prettier ecosystem and supports common formatting options such as printWidth, tabWidth, and a unique iniSpaceAroundEquals option for adding spaces around equals signs. It is actively maintained on GitHub and follows Prettier's release cadence. Compared to alternative INI formatters, it leverages Prettier's robust parser infrastructure and editor integrations, ensuring consistent styling across projects.
npm install prettier-plugin-iniVerified import paths — ran on the pinned version, not inferred.
Shows installation, CLI usage, and programmatic formatting with the plugin.
Update Prettier to version 2.x or higher.
Ensure your configuration aligns with downstream parsers.
Run npm install --save-dev prettier-plugin-ini and ensure it's in your project.
Add the plugin to your Prettier config: { "plugins": ["prettier-plugin-ini"] }