Skip to content
PluginStats

@seletskiy/plugin-pug weekly downloads statistics

By seletskiy · npm · Prettier plugins

Prettier Pug Plugin

View on npm Fresh · Oct 17, 2026

@seletskiy/plugin-pug has 2 recorded weekly downloads on npm, a decrease of 71.4% over the past 30 days.

It ranks #2147 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by 0.0%.

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

Weekly downloads
2
Official API · Oct 17, 2026
7-day growth
0.0%
0 weekly downloads
30-day growth
-71.4%
-5 weekly downloads
90-day growth
0.0%
0 weekly downloads
Rank
#2147
Among tracked npm listings

About @seletskiy/plugin-pug

Prettier Pug plugin

Please note that the plugin ecosystem in Prettier is still beta, which may make @prettier/plugin-pug not ready for production use yet.

Plugin for Prettier to format pug code

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

Prettified code:

bash cd /path/to/project

initialise an npm project if you haven’t done it yet

npm init

or

yarn init

add Prettier and its Pug plugin to project’s dev dependencies

npm install --dev prettier @prettier/plugin-pug

or

yarn add --dev prettier @prettier/plugin-pug bash

format all pug files in your project

./node_modules/.bin/prettier --write "**/*.pug"

or

yarn prettier --write "**/*.pug" json { "semi": false, "overrides": [ { "files": "*.pug", "options": { "parser": "pug", "semi": true } } ] } json { "singleQuote": true, "overrides": [ { "files": "*.pug", "options": { "parser": "pug", "singleQuote": false } } ] } pug input( type="text", value="my_value", name="my_name", alt="my_alt", autocomplete="on" ) pug input( type="text", value="my_value", name="my_name", alt="my_alt", autocomplete="on") pug input(onClick="methodname(\"" + variable + "\", this)") // transforms to input(onClick="methodname(\"\" + variable + \"\", this)")

// In most cases ES6 template strings are a good solution input(onClick=methodname("${variable}", this)) pug • const id = 42 • const collapsed = true

div(id=id, class='collapse' + (collapsed ? '' : ' show') + ' cardcontent') // transforms to .cardcontent(id=id, class="collapse' + (collapsed ? '' : ' show') + '")

// better write .cardcontent.collapse(id=id, class=collapsed ? '' : 'show') // Now your js logic is extracted from the plain logic bash npm install --global prettier @prettier/plugin-pug ```

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 Jest.

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 yarn install. • Execute yarn lint to make sure that the code passes formatting and linting. • Execute yarn test to make sure that TypeScript successfully compiles into JavaScript and and all unit tests pass.

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 repos to the prettier orga.

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

Description from the npm listing.

  • pug
  • prettier
  • prettier-plugin

Where @seletskiy/plugin-pug 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,248 listings · 113 pages · page 108, #8 (overall #2148)
All npm: every listing in weekly downloads order
PNG SVG
Prettier plugins241 listings · 13 pages · page 9, #18 (overall #178)
Prettier plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

@seletskiy/plugin-pug weekly downloads on npm, last 90 days: 2 weekly downloads as of Oct 17, 2026, 0.0% over 90 days.@seletskiy/plugin-pugWeekly downloads on npm · Last 90 days2downloads / week0.0% over 90 days024681012Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
@seletskiy/plugin-pug weekly downloads on npm, last 90 days: 2 weekly downloads as of Oct 17, 2026, 0.0% over 90 days.
PNG SVG

7/30/90-day growth

@seletskiy/plugin-pug weekly downloads growth on npm: 0.0% over 7 days, -71.4% over 30 days, 0.0% over 90 days.@seletskiy/plugin-pugWeekly downloads growth on npm2downloads / week now7-day growth+0 weekly downloads0.0%30-day growth-5 weekly downloads-71.4%90-day growth+0 weekly downloads0.0%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@seletskiy/plugin-pug weekly downloads growth on npm: 0.0% over 7 days, -71.4% over 30 days, 0.0% over 90 days.
PNG SVG

Ranking history

@seletskiy/plugin-pug npm ranking history: currently #2147 (by weekly downloads).@seletskiy/plugin-pugnpm ranking · by weekly downloads · Last 90 days#2147current rank#2145#2146#2147#2148#2149Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
@seletskiy/plugin-pug npm ranking history: currently #2147 (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 @seletskiy/plugin-pug
Date (UTC)Weekly downloadsChange vs. previous
2-1
30
30
3-1
40
4+1
3+1
2+1
1-1
20
2+1
1-1
20
2—

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