Patch, parse, and stringify TOML while preserving comments, whitespace and formatting.
https://www.npmjs.com/package/@decimalturn/toml-patch ↗// readme
toml-patch
Patch, parse, and stringify TOML (v1.1.0) while preserving comments and formatting.
This project started as a fork of the original toml-patch but has since evolved into a standalone project with significant improvements in reliability and features. We’ve added TOML v1.1 support, introduced new APIs like TomlDocument and TomlFormat classes, fixed numerous bugs through increase in testing namely with toml-test.
We hope that these improvements can be incorporated upstream one day if the original author returns, but until then, this project is the actively maintained version.