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 · Oct 17, 2026

@awmottaz/prettier-plugin-void-html has 516 recorded weekly downloads on npm, a decrease of 80.3% over the past 30 days.

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

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

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

Weekly downloads
516
Official API · Oct 17, 2026
7-day growth
-47.0%
-458 weekly downloads
30-day growth
-80.3%
-2.1K weekly downloads
90-day growth
-62.5%
-861 weekly downloads
Rank
#1499
Among tracked npm listings

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.

Next, add the plugin to your Prettier config file.

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.

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:

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.

Languages

This plugin supports the HTML language, only (the "html" parser).

Support for other languages such as Svelte or Vue requires using an entirely different parser and is outside the scope of this plugin.

If you want the features provided by this package in another language, I recommend submitting feedback to the other projects that handle formatting those languages.

Void elements

https://developer.mozilla.org/en-US/docs/Glossary/Void_element

The following elements are recognized by this plugin as void elements:

• area • base • br • col • embed • hr • img • input • link • meta • param • source • track • wbr

Description from the npm listing.

  • prettier
  • prettier-plugin
  • html
  • void

Charts

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

Adoption over time

@awmottaz/prettier-plugin-void-html weekly downloads on npm, last 90 days: 516 weekly downloads as of Oct 17, 2026, -62.5% over 90 days.@awmottaz/prettier-plugin-void-htmlWeekly downloads on npm · Last 90 days516downloads / week-62.5% over 90 days05001K1.5K2K2.5K3KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
@awmottaz/prettier-plugin-void-html weekly downloads on npm, last 90 days: 516 weekly downloads as of Oct 17, 2026, -62.5% over 90 days.
PNG SVG

7/30/90-day growth

@awmottaz/prettier-plugin-void-html weekly downloads growth on npm: -47.0% over 7 days, -80.3% over 30 days, -62.5% over 90 days.@awmottaz/prettier-plugin-void-htmlWeekly downloads growth on npm516downloads / week now7-day growth-458 weekly downloads-47.0%30-day growth-2,106 weekly downloads-80.3%90-day growth-861 weekly downloads-62.5%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@awmottaz/prettier-plugin-void-html weekly downloads growth on npm: -47.0% over 7 days, -80.3% over 30 days, -62.5% over 90 days.
PNG SVG

Ranking history

@awmottaz/prettier-plugin-void-html npm ranking history: currently #1499 (by weekly downloads).@awmottaz/prettier-plugin-void-htmlnpm ranking · by weekly downloads · Last 90 days#1499current rank#1492#1494#1496#1498#1500#1502Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
@awmottaz/prettier-plugin-void-html npm ranking history: currently #1499 (by weekly downloads).
PNG SVG

Listing placement

All npm2,256 listings · 113 pages · 1,130 shown · page 75, #20 (overall #1,500)
All npm: every listing in weekly downloads order
PNG SVG

Listing placement

Prettier plugins244 listings · 13 pages · page 2, #11 (overall #31)
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 @awmottaz/prettier-plugin-void-html
Date (UTC)Weekly downloadsChange vs. previous
516-171
687+24
663-164
827-213
1,0400
1,040+36
1,004+30
974+1
973-94
1,067-184
1,251-72
1,323-300
1,623-120
1,743—

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 Oct 19, 2026. See the methodology.