Skip to content
PluginStats

prettier-plugin-html-template-literals weekly downloads statistics

By sgtpep · npm · Prettier plugins

Formats HTML within tagged template literals in Prettier which is useful for hyperHTML, lit-html, choo, hyperx, nanohtml, snabby, yo-yo, and others.

View on npm Fresh · Oct 17, 2026

prettier-plugin-html-template-literals has 77 recorded weekly downloads on npm, a decrease of 63.0% over the past 30 days.

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

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

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

Weekly downloads
77
Official API · Oct 17, 2026
7-day growth
-51.9%
-83 weekly downloads
30-day growth
-63.0%
-131 weekly downloads
90-day growth
-35.3%
-42 weekly downloads
Rank
#1699
Among tracked npm listings

About prettier-plugin-html-template-literals

prettier-plugin-html-template-literals

Formats HTML within tagged template literals in Prettier which is useful for hyperHTML, lit-html, choo, hyperx, nanohtml, snabby, yo-yo, and others. For example:

Input:

Output:

Why

Declaring HTML templates using tagged template literals is a nice alternative to JSX. It relies only on standard ES6+ and doesn't require a transpiling/preprocessing toolset, at least during development. hyperHTML and lit-html are nice lightweight libraries built on this idea and, more than that, provide the React-like experience without the bloat of Virtual DOM. There are also Virtual DOM-based libraries that consume HTML from tagged template literals: choo, hyperx, nanohtml, snabby, yo-yo, and others.

Warning

As HTML tagged template literals get more attention, no doubts Prettier will support them. You can track an open issue for this request. The problem is that the HTML parser within Prettier is not stable yet, and they haven't decided which tags should identify HTML templates. Also, at the moment, there is no API in Prettier to provide additional embedded languages from plugins. There is a feature request for this. This plugin provides a temporary 'hacky' solution until it will be implemented within Prettier. It uses Prettier's JSX parser and formats any tagged template literal (but not regular template literal) if it contains or . It uses some dirty tricks under the hood, so be warned and report issues/PR.

Usage

Install prettier and prettier-plugin-html-template-literals using yarn:

Or using npm:

Usage from CLI

prettier-plugin-html-template-literals replaces the prettier executable with its wrapped version. The original prettier executable will be restored if you delete this plugin. Use it as the regular prettier executable:

Usage from API

Unfortunately, this plugin is actually ignored by the API exposed with the prettier module at the moment. Instead of require('prettier').format() you need to use the wrapper module with the same API:

Limitations

Because of this plugin relies on the JSX parser it has some limitations. Some of them may be addressed in future if it will be possible to find a workaround.

• Attribute values without quotes are not supported. Raises an exception: • Contents of • It's impossible to reliably eliminate whitespace between adjacent elements: May be wrapped on not to multiple lines: • All empty elements are converted to self-closing (void) ones: • Whitespace is not preserved within elements sensitive to it like pre or textarea. Contents will be collapsed to a single space: \n

Description from the npm listing.

  • choo
  • html
  • hyperhtml
  • hyperx
  • lit-html
  • nanohtml
  • prettier
  • prettier-plugin
  • snabby
  • tagged-template-literal
  • template-literal
  • yo-yo

Where prettier-plugin-html-template-literals 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,256 listings · 113 pages · page 85, #20 (overall #1700)
All npm: every listing in weekly downloads order
PNG SVG
Prettier plugins244 listings · 13 pages · page 4, #4 (overall #64)
Prettier plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

prettier-plugin-html-template-literals weekly downloads on npm, last 90 days: 77 weekly downloads as of Oct 17, 2026, -35.3% over 90 days.prettier-plugin-html-template-literalsWeekly downloads on npm · Last 90 days77downloads / week-35.3% over 90 days02004006008001KJul 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-html-template-literals weekly downloads on npm, last 90 days: 77 weekly downloads as of Oct 17, 2026, -35.3% over 90 days.
PNG SVG

7/30/90-day growth

prettier-plugin-html-template-literals weekly downloads growth on npm: -51.9% over 7 days, -63.0% over 30 days, -35.3% over 90 days.prettier-plugin-html-template-literalsWeekly downloads growth on npm77downloads / week now7-day growth-83 weekly downloads-51.9%30-day growth-131 weekly downloads-63.0%90-day growth-42 weekly downloads-35.3%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
prettier-plugin-html-template-literals weekly downloads growth on npm: -51.9% over 7 days, -63.0% over 30 days, -35.3% over 90 days.
PNG SVG

Ranking history

prettier-plugin-html-template-literals npm ranking history: currently #1699 (by weekly downloads).prettier-plugin-html-template-literalsnpm ranking · by weekly downloads · Last 90 days#1699current rank#1692#1694#1696#1698#1700#1702Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
prettier-plugin-html-template-literals npm ranking history: currently #1699 (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 prettier-plugin-html-template-literals
Date (UTC)Weekly downloadsChange vs. previous
77-7
84-7
91-11
102-9
1110
111-49
1600
160+2
158-133
291-153
444-331
775-89
864+56
808—

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/prettier-plugin-html-template-literals. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.