Patch, parse and stringify TOML while preserving comments, whitespace and formatting.
https://www.npmjs.com/package/@decimalturn/toml-patch โ// momentum
+1โ since featured on SilentStars (2026-08-07)
featured in
- Edition #7 new featured on Bluesky ยท new commits
// why it's here
- Active: last commit 10 days ago
- Built almost entirely by one person
- Health 91/100 with only 9 stars
- Accepts sponsorship (github)
// how to help
// readme
toml-patch
Patch, parse, and stringify TOML (v1.1.0) while preserving comments, whitespace 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.