Skip to content
PluginStats

@awmottaz/prettier-plugin-void-html weekly downloads statistics

By awmottaz · npm · Prettier plugins

Prettier plugin to print void HTML elements without self-closing syntax

View on npm Fresh · Dec 6, 2026

@awmottaz/prettier-plugin-void-html has 1,380 recorded weekly downloads on npm, a decrease of 14.1% over the past 30 days, ranking #1985 of 3,247 tracked listings.

Weekly downloads
1,380
Official API · Dec 5, 2026
7-day growth
-6.9%
-103 weekly downloads
30-day growth
-14.1%
-227 weekly downloads
90-day growth
-8.9%
-135 weekly downloads
Rank
#1985
▼ 113 in 7 days

About @awmottaz/prettier-plugin-void-html

prettier-plugin-void-html

Notice of project status

Updated on 10 Sep, 2026

I am softening the "maintenance mode" status of this project that I have had in place for a while. To be clear, I am not suddenly going to spend a bunch more time on this project. Rather, I would like to affectionately dub this plugin "feature complete".

The goals of this plugin are modest: augment the Prettier formatter so that "self-closing" tag syntax (/>) is never emitted in HTML code. If the affected tag is a void element, then this will remove the slash character. If the affected element is not a void element, then its closing tag is inserted. 1

To that end, this plugin is functionally complete. I will not add support for other HTML-like languages (Vue has been a common request), nor will I add new features (with the one caveat noted in the footnote). You are welcome to fork this project to add those things if you wish.

All that remains for this project is to keep fixing bugs and support new versions of Prettier as they're released. I intend to do so indefinitely.

Contrary to what I have previously said, I will not offer to transfer ownership of this repository to anyone. I will retain ownership 2, and I will do my best to support it as my availability and energy allows.

I have been lucky to receive some high-quality contributions from strangers, whether that's giving detailed bug reports, fixing those bugs, or adding test coverage when new versions of Prettier are released. I am very thankful to those people! And please, keep them coming. This is what open source is all about, and your contributions help the thousands of projects (🤯) that download this plugin each month. Again, thank you.

— 🫶 Tony

Package summary

This is a Prettier plugin to format void HTML elements using the void tag syntax instead of self-closing syntax. Additionally, if self-closing syntax is used on non-void elements, then they will be "unwrapped" so that both the opening and closing tags are present.

Installation

This package is hosted on NPM. Install with your package manager of choice. NPMX seems to provide instructions for a lot of them.

This package is usually installed as a dev dependency. It assumes a Node.js runtime, and as a plugin for Prettier it assumes that you have a supported version of prettier already installed.

npm install -D @awmottaz/prettier-plugin-void-html

Next, add the plugin to your Prettier config file.

{
  "plugins": ["@awmottaz/prettier-plugin-void-html"]
}

What this plugin does

With the plugin installed and active, Prettier will format your HTML source code with the following augmentations to Prettier's default formatting:

  • Void elements are printed using a plain > symbol to close the tag
  • Non-void elements, if authored with a self-closing tag />, will be "unwrapped" so that the closing tag is explicitly included.
<!-- prettier-ignore-start -->
<!-- original source -->
<meta charset="UTF-8">
<label for="my-input">Type something</label>
<input id="my-input" type="text" name="my-input">
<div />

<!-- Prettier's default formatting without this plugin -->
<meta charset="UTF-8" />
<label for="my-input">Type something</label>
<input id="my-input" type="text" name="my-input" />
<div />

<!-- Prettier's formatting with this plugin -->
<meta charset="UTF-8">
<label for="my-input">Type something</label>
<input id="my-input" type="text" name="my-input">
<div></div>
<!-- prettier-ignore-end -->

Compatibility

Prettier

This package is tested against all versions of Prettier starting with v3.0.0 and up to the latest version at the time of publishing. See test.js for the exact versions that are tested and CHANGELOG.md for support by plugin version.

Note that the peerDependencies of this package allow installing newer patch versions of Prettier that may not be included in this list. This is for pragmatic reasons so that you can upgrade patched releases of Prettier without waiting for this package to update.

However, please note this disclaimer from the Prettier installation page:

Install an exact version of Prettier locally in your project. This makes sure that everyone in the project gets the exact same version of Prettier. Even a patch release of Prettier can result in slightly different formatting, so you wouldn’t want different team members using different versions and formatting each other’s changes back and forth.

If you wish to use a version of Prettier that is not supported by this package, then you will need to add an overrides rule. For example, to use an older version of Prettier:

{
  "overrides": {
    "@awmottaz/prettier-plugin-void-html": {
      "prettier": ">=2.8.8"
    }
  }
}

If you do this, please consider contributing to prettier-plugin-void-html by adding tests for that version or opening an issue. I am happy to expand support, but I also need to be pragmatic of my time.…

Footnotes

  1. I have seen some arguments that it should not behave this way since this changes the semantics of the document. I am considering adding a config option for this. If you're interested in this, please create a new issue to let me know. ↩

  2. I am, however, considering a migration away from GitHub as my values no longer align with the direction this platform seems to be moving. ↩

Description from the npm listing.

  • prettier
  • prettier-plugin
  • html
  • void

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

@awmottaz/prettier-plugin-void-html weekly downloads on npm, last 90 days: 1,380 weekly downloads as of Dec 5, 2026, -8.9% over 90 days.@awmottaz/prettier-plugin-void-htmlWeekly downloads on npm · Last 90 days1,380downloads / week-8.9% over 90 days05001K1.5K2K2.5K3KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@awmottaz/prettier-plugin-void-html weekly downloads on npm, last 90 days: 1,380 weekly downloads as of Dec 5, 2026, -8.9% over 90 days.

7/30/90-day growth

@awmottaz/prettier-plugin-void-html weekly downloads growth on npm: -6.9% over 7 days, -14.1% over 30 days, -8.9% over 90 days.@awmottaz/prettier-plugin-void-htmlWeekly downloads growth on npm1,380downloads / week now7-day growth-103 weekly downloads-6.9%30-day growth-227 weekly downloads-14.1%90-day growth-135 weekly downloads-8.9%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@awmottaz/prettier-plugin-void-html weekly downloads growth on npm: -6.9% over 7 days, -14.1% over 30 days, -8.9% over 90 days.

Ranking history

@awmottaz/prettier-plugin-void-html npm ranking history: currently #1985 (by weekly downloads).@awmottaz/prettier-plugin-void-htmlnpm ranking · by weekly downloads · Last 90 days#1985current rank#1400#1500#1600#1700#1800#1900#2000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@awmottaz/prettier-plugin-void-html npm ranking history: currently #1985 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 100, #5 (overall #1,985)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 2, #17 (overall #37)
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 @awmottaz/prettier-plugin-void-html
Date (UTC)Weekly downloadsChange vs. previous
1,380-41
1,421-14
1,435-40
1,475+84
1,391-95
1,486+40
1,446-37
1,483+2
1,481-80
1,561-21
1,582-34
1,616-61
1,677-72
1,749—

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/@awmottaz/prettier-plugin-void-html. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.