Skip to content
PluginStats

@prettier/plugin-pug weekly downloads statistics

By prettier (4 listings) · npm · Prettier plugins

Prettier Pug Plugin

View on npm Fresh · Oct 17, 2026

@prettier/plugin-pug has 24,795 recorded weekly downloads on npm, a decrease of 36.6% over the past 30 days.

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

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

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

Weekly downloads
24,795
Official API · Oct 17, 2026
7-day growth
-46.8%
-21.8K weekly downloads
30-day growth
-36.6%
-14.3K weekly downloads
90-day growth
-38.6%
-15.6K weekly downloads
Rank
#701
Among tracked npm listings

About @prettier/plugin-pug

Prettier Pug plugin

Intro

Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.

This plugin adds support for the Pug language to Prettier.

• Getting started • Usage • Configuration • Workarounds / Known Issues • Integration with editors • Implementation details • Contributing • Credits

Getting started

Simply install prettier and @prettier/plugin-pug as your project’s devDependencies:

Usage

CLI

Configuration file (.prettierrc)

See Standard Prettier overrides and Pug specific options for more options.

API

Workaround / Known Issue

There are some code examples that are not formatted well with this plugin and can damage your code. But there are workarounds for it. These generate even better pug code!

Example

Issue 114

If you have tags at the top/root that are indented, they will lose indentation due to a technical limitation of pug. Please check these before committing after running this plugin for the first time and fix them manually.

Integration with editors

If you are using a text editor that supports Prettier integration (e.g. Atom), you can have all Prettier perks for your Pug code too!

Use VSCode extension to get support for VSCode.

In order to get @prettier/plugin-pug working in projects that do not have local npm dependencies, you can install this plugin globally:

In this case, you might need to check the settings of your editor’s Prettier extension to make sure that a globally installed Prettier is used when it is not found in project dependencies (i.e. package.json).

Nevertheless, it is recommended to rely on local copies of prettier and @prettier/plugin-pug as this reduces the chance of formatting conflicts between project collaborators. This may happen if different global versions of Prettier or its Pug plugin are used.

Installing @prettier/plugin-pug either locally or globally may require you to restart the editor if formatting does not work right away.

Implementation details

This plugin is written in TypeScript and its quality is maintained using Prettier and Vitest.

Contributing

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

To run @prettier/plugin-pug locally:

• Clone this repository. • Execute pnpm run preflight.

Credits

This project was inspired by https://github.com/gicentre/prettier-plugin-elm. Many thanks also to @j-f1, @lipis and @azz for the help in transferring this repository to the prettier organization.

Thanks to @fisker for the constant help and support in terms of Prettier Core support.

Thanks to @Peilonrayz, who gave me the idea to rewrite the printer into a class and thus make the code a lot more maintainable.

Thanks to @lehni, @SkyaTura and @shadowgate15 for the massive contribution and the introduction of many new features into the project.

Thanks to @maoberlehner to acknowledge @prettier/plugin-pug as officially well TTD tested at Vue Amsterdam 2023.

Description from the npm listing.

  • pug
  • prettier-plugin
  • prettier
  • formatter

Charts

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

Adoption over time

@prettier/plugin-pug weekly downloads on npm, last 90 days: 24,795 weekly downloads as of Oct 17, 2026, -38.6% over 90 days.@prettier/plugin-pugWeekly downloads on npm · Last 90 days24,795downloads / week-38.6% over 90 days010K20K30K40K50K60K70KJul 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-pug weekly downloads on npm, last 90 days: 24,795 weekly downloads as of Oct 17, 2026, -38.6% over 90 days.
PNG SVG

7/30/90-day growth

@prettier/plugin-pug weekly downloads growth on npm: -46.8% over 7 days, -36.6% over 30 days, -38.6% over 90 days.@prettier/plugin-pugWeekly downloads growth on npm24,795downloads / week now7-day growth-21,784 weekly downloads-46.8%30-day growth-14,336 weekly downloads-36.6%90-day growth-15,562 weekly downloads-38.6%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@prettier/plugin-pug weekly downloads growth on npm: -46.8% over 7 days, -36.6% over 30 days, -38.6% over 90 days.
PNG SVG

Ranking history

@prettier/plugin-pug npm ranking history: currently #701 (by weekly downloads).@prettier/plugin-pugnpm ranking · by weekly downloads · Last 90 days#701current rank#699#700#701#702#703Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
@prettier/plugin-pug npm ranking history: currently #701 (by weekly downloads).
PNG SVG

Listing placement

All npm2,256 listings · 113 pages · 1,129 shown · page 36, #1 (overall #701)
All npm: every listing in weekly downloads order
PNG SVG

Listing placement

Prettier plugins244 listings · 13 pages · page 1, #9 (overall #9)
Prettier plugins: every listing in weekly downloads order
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.

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.

Recent observations

Full history (121)
Recent weekly downloads observations for @prettier/plugin-pug
Date (UTC)Weekly downloadsChange vs. previous
24,795-4.3K
29,142-1.3K
30,483-11.5K
41,968-9.3K
51,2910
51,291+4.5K
46,815+236
46,579+680
45,899+1.4K
44,501+2.4K
42,151-1.5K
43,689-9.1K
52,767+322
52,445—

Similar npm Prettier plugins plugins

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