Skip to content
PluginStats

prettier-plugin-mustache weekly downloads statistics

By Poliklot (3 listings) · npm · Prettier plugins

Prettier plugin for Mustache templates.

View on npm Fresh · Dec 6, 2026

prettier-plugin-mustache has 110 recorded weekly downloads on npm, a decrease of 56.5% over the past 30 days, ranking #2603 of 3,247 tracked listings.

Weekly downloads
110
Official API · Dec 5, 2026
7-day growth
-11.3%
-14 weekly downloads
30-day growth
-56.5%
-143 weekly downloads
90-day growth
-25.2%
-37 weekly downloads
Rank
#2603
▼ 134 in 7 days

About prettier-plugin-mustache

prettier-plugin-mustache

npm version CI

Prettier plugin for Mustache templates.

It formats .mustache, .mst, and .mu files with a focus on stable, idempotent output and Mustache syntax rather than Handlebars, Ember, or Glimmer extensions.

Install

npm install --save-dev prettier prettier-plugin-mustache

Quick Start

Recommended config:

/** @type {import("prettier").Config} */
module.exports = {
  plugins: ["prettier-plugin-mustache"],
  overrides: [
    {
      files: ["*.mustache", "*.mst", "*.mu"],
      options: {
        parser: "mustache",
      },
    },
  ],
};

Then format templates:

npx prettier --write "**/*.{mustache,mst,mu}"

Configuration Patterns

Minimal setup
{
  "plugins": ["prettier-plugin-mustache"]
}
Explicit override

Use this when a repository contains several template languages and you want editor format-on-save to stay predictable.

{
  "plugins": ["prettier-plugin-mustache"],
  "overrides": [
    {
      "files": ["*.mustache", "*.mst", "*.mu"],
      "options": {
        "parser": "mustache"
      }
    }
  ]
}
Local plugin build during dogfooding
/** @type {import("prettier").Config} */
module.exports = {
  plugins: ["../prettier-plugin-mustache/dist/plugin.js"],
  overrides: [
    {
      files: ["*.mustache", "*.mst", "*.mu"],
      options: {
        parser: "mustache",
      },
    },
  ],
};

CLI

Published package:

npx prettier --write "src/**/*.{mustache,mst,mu}" --plugin prettier-plugin-mustache --parser mustache

Local plugin build:

npx prettier --write "src/**/*.{mustache,mst,mu}" --plugin ../prettier-plugin-mustache/dist/plugin.js --parser mustache

API

const prettier = require("prettier");
const plugin = require("prettier-plugin-mustache");

async function run(source) {
  return prettier.format(source, {
    filepath: "template.mustache",
    parser: "mustache",
    plugins: [plugin],
  });
}

Supported File Extensions

  • .mustache
  • .mst
  • .mu

What The Plugin Handles Today

Mustache featureExampleStatus
Plain text templatesHello from {Mustache}!Preserved
Escaped variables{{name}}Formatted
Dotted names{{user.name}}Formatted
Implicit iterator{{.}}Formatted
Triple mustache{{{html}}}Formatted
Ampersand unescaped variables{{& html}}Formatted
Comments{{! comment}}Formatted
Multiline comments{{! first\nsecond }}Preserved/formatted
Sections{{#items}}...{{/items}}Formatted
Inverted sections{{^items}}...{{/items}}Formatted
Lambda sections{{#wrapped}}...{{/wrapped}}Syntax formatted; runtime behavior belongs to the renderer
Partials{{> user}}Formatted
Dynamic partial names{{>*partial}}Formatted
Set delimiters{{=<% %>=}}Formatted and tracked
Delimiter reset<%={{ }}=%>Formatted and tracked
Blocks/inheritance extension{{$title}}...{{/title}}Formatted
Parent templates{{< layout}}...{{/layout}}Formatted
Dynamic parent names{{<*layout}}...{{/*layout}}Formatted
Standalone comments / partials / delimiter tags{{! comment}}, {{> user}}, {{=<% %>=}}Formatted in multiline sections
…

Description from the npm listing.

  • prettier
  • prettier-plugin
  • mustache
  • template
  • formatter

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-mustache weekly downloads on npm, last 90 days: 110 weekly downloads as of Dec 5, 2026, -25.2% over 90 days.prettier-plugin-mustacheWeekly downloads on npm · Last 90 days110downloads / week-25.2% over 90 days0100200300400500Sep 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-mustache weekly downloads on npm, last 90 days: 110 weekly downloads as of Dec 5, 2026, -25.2% over 90 days.

7/30/90-day growth

prettier-plugin-mustache weekly downloads growth on npm: -11.3% over 7 days, -56.5% over 30 days, -25.2% over 90 days.prettier-plugin-mustacheWeekly downloads growth on npm110downloads / week now7-day growth-14 weekly downloads-11.3%30-day growth-143 weekly downloads-56.5%90-day growth-37 weekly downloads-25.2%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-mustache weekly downloads growth on npm: -11.3% over 7 days, -56.5% over 30 days, -25.2% over 90 days.

Ranking history

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

Listing placement

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

Listing placement

Prettier plugins267 listings · 14 pages · page 5, #6 (overall #86)
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-mustache
Date (UTC)Weekly downloadsChange vs. previous
110+22
88-17
105+13
92-25
117-15
132-4
136+12
124-19
143-18
161+8
153+21
132-169
301+7
294—

Similar npm Prettier plugins plugins

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