prettier-plugin-toml weekly downloads statistics
By un-ts (5 listings) · npm · Prettier plugins
An opinionated `toml` formatter plugin for Prettier
prettier-plugin-toml has 68,469 recorded weekly downloads on npm, a decrease of 44.9% over the past 30 days, ranking #527 of 2,322 tracked listings.
About prettier-plugin-toml
prettier-plugin-toml

An opinionated
tomlformatter plugin for [Prettier][]
Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing, taking various rules into account.
This plugin adds support for toml through [tombi][].
Notice
This plugin is still under development, its printer just wraps [tombi][]'s default printer. Of course it should just work, but may not match [prettier][]'s format sometimes.
Requirements
prettier-plugin-toml is an evergreen module. 🌲 This module requires an LTS Node version (v20.0.0+).
Install
Using npm:
# npm
npm i -D prettier prettier-plugin-toml
# yarn
yarn add -D prettier prettier-plugin-toml
Usage
Once installed, Prettier plugins must be added to .prettierrc:
{
"plugins": ["prettier-plugin-toml"]
}
Then:
# npx
npx prettier --write foo.toml
# yarn
yarn prettier --write foo.toml
Configuration
Besides the options below, this plugin reads [tombi][]'s own configuration,
following its [search priority][tombi-config]. Discovery and merging are
delegated to tombit, which performs
the search in Rust:
- Project — for each directory from the formatted file's directory up to
the filesystem root:
.tombi.toml,tombi.toml,.config/tombi.toml, then[tool.tombi]inpyproject.toml. - User —
$XDG_CONFIG_HOME/tombi/config.toml,~/.config/tombi/config.toml, plus the platform specific~/Library/Application Support/tombi/config.toml(macOS) or%APPDATA%\tombi\config.toml(Windows). - System —
/etc/tombi/config.toml.
The rules are resolved in ascending priority, each step overriding the previous one:
- The discovered configuration's base rules, including the plugin options the user did not set.
- Prettier's core options (
printWidth,tabWidth,useTabs,singleQuote,bracketSpacing) and any plugin option the user explicitly sets, passed asoverrideConfig. - The discovered configuration's per-file
[[overrides]], applied by Tombi last.
Prettier's core options are always resolved, so they win over the discovered
base rules (a matching [[overrides]] can still override them, because Tombi
applies overrides last): a tombi.toml line-width that differs from
Prettier's printWidth does not change this plugin's output. If you also use the tombi CLI or the VS Code
extension, set line-width in tombi.toml to the same value as printWidth
so both produce the same output — with no configuration at all, Prettier
defaults to 80 while tombi has no line width limit.
The plugin's own options have no defaults: when they are not set, the
discovered configuration (or Tombi's default) decides, except
stringQuoteStyle and inlineTableBraceSpaceWidth, which derive from
Prettier's singleQuote/bracketSpacing. toml-version follows the same rule
because it decides how the source is parsed.
Notes
- Tombi's schema lookup is always disabled, so formatting stays offline and deterministic.
- Resolved configurations are cached and invalidated when the configuration file or its directory changes, so edits apply without restarting the process.
Parser Options
[prettier][]'s own core options are inherited and mapped to their tombi counterparts where they exist:
printWidth→line-widthtabWidth→indent-widthuseTabs→indent-stylesingleQuote→string-quote-stylebracketSpacing→inline-table-brace-space-width
endOfLine is handled by [prettier][] itself. All of tombi's other format
rules are exposed as toml options. They have no defaults: setting one
overrides the discovered configuration, while leaving it unset lets
tombi.toml (or Tombi's own default) decide — except stringQuoteStyle and
inlineTableBraceSpaceWidth, which derive from the core options above.…
Description from the npm listing.
- toml
- plugin
- prettier
- prettier-plugin
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (122)Similar npm Prettier plugins plugins
All 20 prettier-plugin-toml alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/prettier-plugin-toml. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.