
Security News
TC39 Advances Temporal to Stage 4 Alongside Several ECMAScript Proposals
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.
prettier-plugin-toml
Advanced tools
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 taplo.
This plugin is still under development, its printer just wraps taplo's default printer. Of course it should just work, but may not match prettier's format sometimes.
prettier-plugin-toml is an evergreen module. 🌲 This module requires an LTS Node version (v16.0.0+).
Using npm:
# npm
npm i -D prettier prettier-plugin-toml
# yarn
yarn add -D prettier prettier-plugin-toml
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
interface PrettierOptions {
// 'Align consecutive entries vertically.'
alignEntries: boolean // default `false`
// Align consecutive comments after entries and items vertically. This applies
// to comments that are after entries or array items.
alignComments: boolean // default `true`
// Expand arrays to multiple lines that exceed the maximum column width.
arrayAutoExpand: boolean // default `true`
// Collapse arrays that don't exceed the maximum column width and don't
// contain comments.
arrayAutoCollapse: boolean // default `true`
// Omit white space padding from single-line arrays.
compactArrays: boolean // default `true`
// Omit white space padding from the start and end of inline tables.
compactInlineTables: boolean // default `false`
// Omit white space around `=`.
compactEntries: boolean // default `false`
// Indent based on tables and arrays of tables and their subtables, subtables
// out of order are not indented.
indentTables: boolean // default `false`
// Indent entries under tables.
indentEntries: boolean // default `false`
// Alphabetically reorder keys that are not separated by empty lines.
reorderKeys: boolean // default `false`
// The maximum number of allowed blank lines between entries and tables.
allowedBlankLines: number // integer, default `1`
}
| 1stG | RxTS | UnTS |
|---|---|---|
| 1stG | RxTS | UnTS |
|---|---|---|
Detailed changes for each release are documented in CHANGELOG.md.
FAQs
An opinionated `toml` formatter plugin for Prettier
The npm package prettier-plugin-toml receives a total of 56,801 weekly downloads. As such, prettier-plugin-toml popularity was classified as popular.
We found that prettier-plugin-toml demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.

Research
/Security News
Since January 31, 2026, we identified at least 72 additional malicious Open VSX extensions, including transitive GlassWorm loader extensions targeting developers.

Research
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.