Skip to content
PluginStats

prettier-plugin-elm weekly downloads statistics

By gicentre · npm · Prettier plugins

Adds Elm language support to Prettier via elm-format

View on npm Fresh · Oct 17, 2026

prettier-plugin-elm has 940 recorded weekly downloads on npm, an increase of 13.1% over the past 30 days.

It ranks #1401 of 2,256 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -60.9%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
940
Official API · Oct 17, 2026
7-day growth
-2.4%
-23 weekly downloads
30-day growth
+13.1%
+109 weekly downloads
90-day growth
-60.9%
-1.5K weekly downloads
Rank
#1401
Among tracked npm listings

About prettier-plugin-elm

Prettier Elm plugin

This plugin integrates elm-format into Prettier. In addition to dealing with .elm files via Prettier API, this plugin lets you format Elm code blocks inside markdown documents.

For example,

elm import Html exposing (text)

main = text "Hello, World!" `

becomes:

elm import Html exposing (text)

main = text "Hello, World!" `

You can disable code formatting for a particular code block by adding before markdown Elm code with custom formatting:

Prettified code:

sh node --version

≥ 18.20

npm --version

≥ 9

sh npm install --global prettier@2 prettier-plugin-elm sh pwd ## prints something like /path/to/my/project sh ## if you use npm npm init --yes sh ## if you use pnpm pnpm init --yes sh ## if you use yarn yarn init --yes sh ## if you use npm npm install --only=dev prettier prettier-plugin-elm sh ## if you use pnpm pnpm add --dev prettier prettier-plugin-elm sh ## if you use yarn yarn add --dev prettier prettier-plugin-elm sh ## if you use npm npm install sh ## if you use pnpm pnpm install sh ## if you use yarn yarn install json { "plugins": ["prettier-plugin-elm"] } sh

if you use npm

• Lint (i.e. check) if all source files are formatted

npm run lint:prettier

• Fix formatting in all files

npm run fix:prettier sh

if you use pnpm

• Lint (i.e. check) if all source files are formatted

pnpm run lint:prettier

• Fix formatting in all files

pnpm run fix:prettier sh

if you use yarn

Lint (i.e. check) if all source files are formatted

yarn lint:prettier

Fix formatting in all files

yarn fix:prettier ```

Implementation details

This plugin is written in TypeScript. The quality of the codebase is checked using Prettier, Jest and ESLint via Github Actions. Tests run on Linux, macOS and Windows.

Unlike most other Prettier plugins, prettier-plugin-elm does not contain logic to parse code blocks into syntax trees to then stringify them. Both of these tasks are delegated to elm-format by making a call to a sub-process. Thus, the result of formatting is compatible with what Elm community is used to see.

The only difference to elm-format introduced by prettier-plugin-elm is related to handling fragments of Elm modules, which is not supported upstream yet. See src/parser.ts for details on the workaround.

Contributing

If you’re interested in contributing to the development of Prettier Elm plugin, please follow the CONTRIBUTING guide from Prettier as it all applies to this repository too.

To run the development version of prettier-plugin-elm:

• Clone this repository • Ensure pnpm is installed on your machine (any version above v10.0 will work) • Run pnpm install • Run pnpm lint to make sure that the codebase passes linting • Run pnpm test to make sure that TypeScript successfully compiles into JavaScript and and all unit tests pass • To test the plugin manually, create a file named prettier-test.elm (or .md). Then run pnpm prettier --ignore-path= --plugin=./dist/main.js prettier-test.elm (or .md) and check the output.

Credits

This project was inspired by . Big thanks to Aaron VonderHaar (@avh4) and contributors for creating elm-format!

Description from the npm listing.

  • elm
  • elm-format
  • gicentre
  • prettier
  • prettier-plugin
  • typescript

Where prettier-plugin-elm sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,256 listings · 113 pages · page 71, #2 (overall #1402)
All npm: every listing in weekly downloads order
PNG SVG
Prettier plugins244 listings · 13 pages · page 2, #3 (overall #23)
Prettier plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

prettier-plugin-elm weekly downloads on npm, last 90 days: 940 weekly downloads as of Oct 17, 2026, -60.9% over 90 days.prettier-plugin-elmWeekly downloads on npm · Last 90 days940downloads / week-60.9% over 90 days05001K1.5K2K2.5KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
prettier-plugin-elm weekly downloads on npm, last 90 days: 940 weekly downloads as of Oct 17, 2026, -60.9% over 90 days.
PNG SVG

7/30/90-day growth

prettier-plugin-elm weekly downloads growth on npm: -2.4% over 7 days, +13.1% over 30 days, -60.9% over 90 days.prettier-plugin-elmWeekly downloads growth on npm940downloads / week now7-day growth-23 weekly downloads-2.4%30-day growth+109 weekly downloads+13.1%90-day growth-1,463 weekly downloads-60.9%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
prettier-plugin-elm weekly downloads growth on npm: -2.4% over 7 days, +13.1% over 30 days, -60.9% over 90 days.
PNG SVG

Ranking history

prettier-plugin-elm npm ranking history: currently #1401 (by weekly downloads).prettier-plugin-elmnpm ranking · by weekly downloads · Last 90 days#1401current rank#1396#1397#1398#1399#1400#1401#1402#1403Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
prettier-plugin-elm npm ranking history: currently #1401 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (121)
Recent weekly downloads observations for prettier-plugin-elm
Date (UTC)Weekly downloadsChange vs. previous
940-40
980+411
569-191
760-244
1,0040
1,004-21
1,025+62
963-26
989+3
986-7
993-35
1,028-231
1,259-5
1,264—

Similar npm Prettier plugins plugins

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-elm. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.