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 Stale · Oct 18, 2026

prettier-plugin-elm has 1,451 recorded weekly downloads on npm, an increase of 94.8% over the past 30 days, ranking #1410 of 2,391 tracked listings.

Weekly downloads
1,451
Official API · Oct 18, 2026
7-day growth
+41.6%
+426 weekly downloads
30-day growth
+94.8%
+706 weekly downloads
90-day growth
-40.3%
-978 weekly downloads
Rank
#1410
Among tracked npm listings

About prettier-plugin-elm

<p align="center"> &nbsp;&nbsp;<img alt="Prettier" src="https://cdn.rawgit.com/prettier/prettier-logo/master/images/prettier-icon-light.svg">&nbsp;&nbsp; &nbsp;&nbsp;<img alt="Elm" height="210" src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f3/Elm_logo.svg/1024px-Elm_logo.svg.png">&nbsp;&nbsp; </p> <h2 align="center">Prettier Elm plugin</h2> <p align="center"> <a href="https://github.com/gicentre/prettier-plugin-elm/blob/main/LICENSE"> <img alt="license: BSD-3-Clause" src="https://img.shields.io/github/license/gicentre/prettier-plugin-elm.svg?style=flat-square"><!-- --></a> <a href="https://www.npmjs.com/package/prettier-plugin-elm"> <img alt="NPM package" src="https://img.shields.io/npm/v/prettier-plugin-elm.svg?style=flat-square"><!-- --></a> <a href="https://github.com/gicentre/prettier-plugin-elm/actions/workflows/ci.yml"> <img alt="GitHub Workflow Status (CI)" src="https://img.shields.io/github/actions/workflow/status/gicentre/prettier-plugin-elm/ci.yml?label=CI&style=flat-square"><!-- --></a> <a href="https://codecov.io/gh/gicentre/prettier-plugin-elm"> <img alt="Codecov" src="https://img.shields.io/codecov/c/github/gicentre/prettier-plugin-elm?style=flat-square&token=38aa3a14f00b4d3cbb8e39a9d69e6c64"><!-- --></a> <br> <a href="https://www.npmjs.com/package/prettier-plugin-elm"> <img alt="downloads" src="https://img.shields.io/npm/dt/prettier-plugin-elm.svg?style=flat-square"><!-- --></a> <a href="#badge"> <img alt="code style: Prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square"><!-- --></a> <a href="https://twitter.com/giCentre"> <img alt="giCentre on Twitter" src="https://img.shields.io/badge/follow-%40giCentre-1DA1F2?logo=twitter&style=flat-square"><!-- --></a> </p>

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,

<!-- prettier-ignore -->
#    Hello world in Elm
```elm
import  Html exposing     (text)

main = text      "Hello, World!"
```

becomes:

# Hello world in Elm

```elm
import Html exposing (text)


main =
    text "Hello, World!"
```

You can disable code formatting for a particular code block by adding <nobr><!-- prettier-ignore --></nobr> before ```elm.

Elm code with custom formatting:

<!-- prettier-ignore -->
```elm
main = text      "Hello, World!"
```

Prettified code:

```elm
main =
    text "Hello, World!"
```

The latest version of prettier-plugin-elm assumes that you are using Elm 0.19. For compatibility with Elm 0.18, please install prettier-plugin-elm@0.3.

Getting started

The instructions assume that you have already installed Node.js on your machine. To check its presence, open the terminal and type these two commands:

node --version
## ≥ 18.20

npm --version
## ≥ 9

If you see errors or if the displayed versions are too old, follow the instructions on nodejs.org to download this software. By installing Node.js you also get NPM, so there is no need to obtain it separately. You might need to restart the terminal or the whole machine to see the new versions.

Global install

The easiest way to get started with Prettier and its Elm plugin is to globally install two NPM packages:

npm install --global prettier@2 prettier-plugin-elm

Global install is preferred in simple scenarios, especially when you are working alone on small projects.

Prettier v3 does has dropped support for automatic plugin search so we need to install prettier@2 globally. If you want to use Prettier v3, you need to install it locally and mention prettier-plugin-elm in the config file.

Local install

When collaborating on a group project, it is useful to keep versions of Prettier and its Elm plugin in sync within the team. This avoids frequent unwanted changes in source files, which can be caused by formatting differences between tool versions.

  1. Open a terminal and ensure you are located at the root of your project:

    pwd
    ## prints something like /path/to/my/project
    
  2. If there is no package.json file in your project directory, initialize it:

    ## if you use npm
    npm init --yes
    
    ## if you use pnpm
    pnpm init --yes
    
    ## if you use yarn
    yarn init --yes
    
  3. Run the install command:

    ## if you use npm
    npm install --only=dev prettier prettier-plugin-elm
    
    ## if you use pnpm
    pnpm add --dev prettier prettier-plugin-elm
    
    ## if you use yarn
    yarn add --dev prettier prettier-plugin-elm
    

    Versions of Prettier and its Elm plugin will be written to package.json and package-lock.json / pnpm-lock.yaml / yarn.lock. If you share these files with the rest of your source code, others will be able to get the exact same versions of the tools by running:

    ## if you use npm
    npm install
    
    ## if you use pnpm
    pnpm install
    
    ## if you use yarn
    yarn install
    
  4. Mention the plugin in the config file:

    1. Create a file named .prettierrc.json in the root of your project. If you already have this file, open it instead. Note that it can be called differently because Prettier supports several config file names.

    2. Add the following content to the file:

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

      This tells Prettier to use the Elm plugin when formatting files.…

Description from the npm listing.

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

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-elm weekly downloads on npm, last 90 days: 1,451 weekly downloads as of Oct 18, 2026, -40.3% over 90 days.prettier-plugin-elmWeekly downloads on npm · Last 90 days1,451downloads / week-40.3% over 90 days05001K1.5K2K2.5KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 23, 2026 – Oct 18, 2026 · 88 observations · Updated Oc…pluginstats.com
prettier-plugin-elm weekly downloads on npm, last 90 days: 1,451 weekly downloads as of Oct 18, 2026, -40.3% over 90 days.

7/30/90-day growth

prettier-plugin-elm weekly downloads growth on npm: +41.6% over 7 days, +94.8% over 30 days, -40.3% over 90 days.prettier-plugin-elmWeekly downloads growth on npm1,451downloads / week now7-day growth+426 weekly downloads+41.6%30-day growth+706 weekly downloads+94.8%90-day growth-978 weekly downloads-40.3%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
prettier-plugin-elm weekly downloads growth on npm: +41.6% over 7 days, +94.8% over 30 days, -40.3% over 90 days.

Ranking history

prettier-plugin-elm npm ranking history: currently #1410 (by weekly downloads).prettier-plugin-elmnpm ranking · by weekly downloads · Last 90 days#1410current rank#1380#1385#1390#1395#1400#1405#1410#1415Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 18, 2026 – Oct 21, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
prettier-plugin-elm npm ranking history: currently #1410 (by weekly downloads).

Listing placement

All npm2,389 listings · 120 pages · 1,195 shown · page 72, #5 (overall #1,425)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 1, #19 (overall #19)
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 (122)
Recent weekly downloads observations for prettier-plugin-elm
Date (UTC)Weekly downloadsChange vs. previous
1,451+511
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—

Similar npm Prettier plugins plugins

All 20 prettier-plugin-elm 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-elm. First seen Oct 16, 2026; last successful collection Oct 21, 2026. See the methodology.