Skip to content
PluginStats

pretty-plugin-pug-g weekly downloads statistics

By prettier (4 listings) · npm · Prettier plugins

Improved Prettier Pug Plugin

View on npm Fresh · Oct 18, 2026

pretty-plugin-pug-g has 2 recorded weekly downloads on npm, a decrease of 60.0% over the past 30 days, ranking #2280 of 2,322 tracked listings.

Weekly downloads
2
Official API · Oct 18, 2026
7-day growth
0.0%
0 weekly downloads
30-day growth
-60.0%
-3 weekly downloads
90-day growth
—
Insufficient history
Rank
#2280
Among tracked npm listings

About pretty-plugin-pug-g

<p align="center"> &nbsp;&nbsp;&nbsp;&nbsp; <a href="https://prettier.io" target="_blank"> <img alt="Prettier" src="https://cdn.rawgit.com/prettier/prettier-logo/master/images/prettier-icon-light.svg"> </a> &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <a href="https://pugjs.org" target="_blank"> <img alt="Pug" src="https://cdn.rawgit.com/pugjs/pug-logo/eec436cee8fd9d1726d7839cbe99d1f694692c0c/SVG/pug-final-logo-_-colour-128.svg" height="210"> </a> &nbsp;&nbsp;&nbsp;&nbsp; </p> <h2 align="center">Prettier Pug plugin</h2> <p align="center"> <a href="https://github.com/prettier/plugin-pug/blob/main/LICENSE"> <img alt="license: MIT" src="https://img.shields.io/github/license/prettier/plugin-pug.svg?style=flat-square"> </a> <a href="https://www.npmjs.com/package/@prettier/plugin-pug" target="_blank"> <img alt="NPM package" src="https://img.shields.io/npm/v/@prettier/plugin-pug.svg?style=flat-square"> </a> <a href="https://www.npmjs.com/package/@prettier/plugin-pug" target="_blank"> <img alt="downloads" src="https://img.shields.io/npm/dt/@prettier/plugin-pug.svg?style=flat-square"> </a> <a href="https://prettier.io" target="_blank"> <img alt="Code Style: Prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square"> </a> <a href="https://github.com/prettier/plugin-pug/actions/workflows/ci.yml"> <img alt="Build Status" src="https://github.com/prettier/plugin-pug/actions/workflows/ci.yml/badge.svg?branch=main"> </a> </p>

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

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

npm add --save-dev prettier @prettier/plugin-pug
# or
yarn add --dev prettier @prettier/plugin-pug
# or
pnpm add --save-dev prettier @prettier/plugin-pug

Usage

npx prettier --write "**/*.pug"
# or
yarn prettier --write "**/*.pug"
# or
pnpm prettier --write "**/*.pug"

Configuration

See documentation

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:

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 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 install.
  • Execute pnpm run lint to make sure that the code passes formatting and linting.
  • Execute pnpm run test to make sure that TypeScript successfully compiles into JavaScript 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 repository to the prettier organization.

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.

Description from the npm listing.

  • pug
  • prettier-plugin
  • prettier
  • 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

pretty-plugin-pug-g weekly downloads on npm, last 90 days: 2 weekly downloads as of Oct 18, 2026.pretty-plugin-pug-gWeekly downloads on npm · Last 90 days2downloads / week0123456Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
pretty-plugin-pug-g weekly downloads on npm, last 90 days: 2 weekly downloads as of Oct 18, 2026.

7/30/90-day growth

pretty-plugin-pug-g weekly downloads growth on npm: 0.0% over 7 days, -60.0% over 30 days, 90-day growth unavailable.pretty-plugin-pug-gWeekly downloads growth on npm2downloads / week now7-day growth+0 weekly downloads0.0%30-day growth-3 weekly downloads-60.0%90-day growth+2 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
pretty-plugin-pug-g weekly downloads growth on npm: 0.0% over 7 days, -60.0% over 30 days, 90-day growth unavailable.

Ranking history

pretty-plugin-pug-g npm ranking history: currently #2280 (by weekly downloads).pretty-plugin-pug-gnpm ranking · by weekly downloads · Last 90 days#2280current rank#2140#2160#2180#2200#2220#2240#2260#2280#2300Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
pretty-plugin-pug-g npm ranking history: currently #2280 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 115, #4 (overall #2,284)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 11, #18 (overall #218)
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 pretty-plugin-pug-g
Date (UTC)Weekly downloadsChange vs. previous
20
20
2+2
00
0-1
10
1-1
20
20
2-1
30
3+1
20
2—

Similar npm Prettier plugins plugins

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