Skip to content
PluginStats

prettier-plugin-soml weekly downloads statistics

By soml-lang · npm · Prettier plugins

Prettier plugin for SOML, a config format for humans

View on npm Fresh · Dec 6, 2026

prettier-plugin-soml has 29 recorded weekly downloads on npm, a decrease of 88.4% over the past 30 days, ranking #2905 of 3,247 tracked listings.

Weekly downloads
29
Official API · Dec 5, 2026
7-day growth
+7.4%
+2 weekly downloads
30-day growth
-88.4%
-220 weekly downloads
90-day growth
—
Insufficient history
Rank
#2905
▼ 171 in 7 days

About prettier-plugin-soml

prettier-plugin-soml

Prettier plugin for SOML, a config format for humans

[!NOTE] The format is a draft. See the specification.

It formats by the formatting rules of the specification.

# Before
server: {host: 'localhost',
  port: 8080} # Local only
limits: [2,   16,]
launch-date:2027-09-19
# After
server: {
	host: 'localhost'
	port: 8080
} # Local only
limits: [2, 16]
launch-date: 2027-09-19

Install

npm install --save-dev prettier prettier-plugin-soml

Requires Node.js 22 or later and Prettier 3.6 or later.

Usage

Add the plugin to your Prettier config, for example .prettierrc:

{
	"plugins": [
		"prettier-plugin-soml"
	]
}

Then format your files:

npx prettier --write '**/*.soml'

It also formats ```soml code blocks in Markdown files, and lang="soml" blocks in Vue files.

With the Prettier API, pass the module:

import * as prettier from 'prettier';
import * as somlPlugin from 'prettier-plugin-soml';

await prettier.format('a: {b: 1,\nc: 2}', {parser: 'soml', plugins: [somlPlugin]});
//=> 'a: {\n\tb: 1\n\tc: 2\n}\n'

What it changes

Only the layout:

  • Indentation, to one tab per level
  • Line breaks, so that every member and every array item of an object or array that spans lines is on its own line
  • Commas, which are all removed from an object or array that spans lines, because every member and item is on its own line, while one on one line loses only its trailing comma
  • Spaces, so that there is one space after : and after a comma, and none directly inside the brackets of an object or array on one line
  • Trailing whitespace, which is removed, and runs of blank lines, which become one, except inside a block string, where they are content

An object or array whose brackets are on one line stays on one line, as in ports: [80, 443], whatever printWidth is. To give it one member or item per line, put a line break anywhere inside it.

It keeps comments, member order, block strings, a top level without braces, and the spelling of every scalar value. 0xFF stays 0xFF, and 'text' stays 'text'.

[!NOTE] The output always uses tabs and LF. The layout of a SOML file is set by the specification, so that "already formatted" means the same in every tool. The plugin ignores useTabs, tabWidth, printWidth, bracketSpacing, trailingComma, singleQuote, quoteProps, endOfLine, and the matching .editorconfig settings. It has no options of its own.

Pragmas

With --require-pragma, only files that start with # @format or # @prettier are formatted. --insert-pragma adds # @format at the top. With --check-ignore-pragma, files that start with # @noformat or # @noprettier are left as they are.

The pragma must be on the first line that is not blank, and alone on that line.

There is no prettier-ignore comment for one member or item, because the specification does not have one yet.

VS Code

The Prettier extension formats .soml files when this plugin is in your Prettier config. VS Code itself must also know the SOML language, for syntax highlighting and "[soml]" settings. That needs a VS Code extension for SOML, which is not part of this package.

Limitations

Prettier core does these before or after the plugin runs. The first four let a file through that parse() in soml-lang refuses:

  • A byte order mark is removed before formatting and added back after it, so a file with a BOM is formatted and still has the BOM, which is not valid SOML.
  • A carriage return is changed to LF before formatting, also inside strings and comments. So a file with CRLF line endings is formatted and gets LF line endings, while parse() refuses it.
  • Invalid UTF-8 is replaced with U+FFFD when Prettier reads the file, so it is not reported, and the formatted file contains U+FFFD.
  • An empty file, or one with only whitespace, is not reported as invalid. A file with only whitespace becomes empty. This includes whitespace that SOML refuses, such as U+00A0 and U+2028. With --insert-pragma, such a file is reported, because Prettier adds the pragma first, and a pragma alone is not a document.
  • Range formatting (--range-start and --range-end) does not format the file. It only changes CRLF to LF. Prettier supports range formatting only for its built-in languages.
  • An invalid ```soml code block in Markdown is left unchanged and is not reported.
  • A ```soml code block in a Markdown file with CRLF line endings keeps CRLF, like the rest of that file.
  • For an invalid file, Prettier shows the lines around the error as they are, so control characters in those lines, such as an escape, reach the terminal.

Description from the npm listing.

  • prettier
  • prettier-plugin
  • plugin
  • soml
  • format
  • formatter
  • config
  • configuration

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

prettier-plugin-soml weekly downloads on npm, last 90 days: 29 weekly downloads as of Dec 5, 2026.prettier-plugin-somlWeekly downloads on npm · Last 90 days29downloads / week050100150200250300Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
prettier-plugin-soml weekly downloads on npm, last 90 days: 29 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

prettier-plugin-soml weekly downloads growth on npm: +7.4% over 7 days, -88.4% over 30 days, 90-day growth unavailable.prettier-plugin-somlWeekly downloads growth on npm29downloads / week now7-day growth+2 weekly downloads+7.4%30-day growth-220 weekly downloads-88.4%90-day growth+29 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-soml weekly downloads growth on npm: +7.4% over 7 days, -88.4% over 30 days, 90-day growth unavailable.

Ranking history

prettier-plugin-soml npm ranking history: currently #2905 (by weekly downloads).prettier-plugin-somlnpm ranking · by weekly downloads · Last 90 days#2905current rank#1600#1800#2000#2200#2400#2600#2800#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
prettier-plugin-soml npm ranking history: currently #2905 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 146, #7 (overall #2,907)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 8, #13 (overall #153)
Prettier plugins: every listing in weekly downloads order

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 (170)
Recent weekly downloads observations for prettier-plugin-soml
Date (UTC)Weekly downloadsChange vs. previous
29+8
21-5
26+3
230
23-5
28+1
270
27-4
31+2
29-1
30-1
31+5
26-2
28—

Similar npm Prettier plugins plugins

All 20 prettier-plugin-soml alternatives

Data 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-soml. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.