Skip to content
PluginStats

prettier-plugin-embed weekly downloads statistics

By Sec-ant · npm · Prettier plugins

A configurable Prettier plugin to format embedded languages in JS/TS files.

View on npm Fresh · Oct 18, 2026

prettier-plugin-embed has 49,393 recorded weekly downloads on npm, a decrease of 56.7% over the past 30 days, ranking #592 of 2,322 tracked listings.

Weekly downloads
49,393
Official API · Oct 18, 2026
7-day growth
-54.7%
-59.7K weekly downloads
30-day growth
-56.7%
-64.7K weekly downloads
90-day growth
-30.8%
-22K weekly downloads
Rank
#592
Among tracked npm listings

About prettier-plugin-embed

<div align="center">

prettier-plugin-embed-wide-logo

Prettier Plugin Embed

Online playground · Run the playground locally

npm version npm downloads npm license All Contributors

github last commit bundlephobia minzipped

A configurable Prettier plugin to format embedded languages in JS/TS Files.

npm i -D prettier prettier-plugin-embed
</div>

Introduction

What?

This Prettier plugin formats embedded languages in template literals within JavaScript and TypeScript files.

Why?

It adds per-language formatting controls, configurable block comments and tags, and per-identifier overrides to Prettier's embedded formatting. See prettier/prettier#4424 and prettier/prettier#5588 for related use cases.

How?

The plugin extends the embed method of Prettier's estree printer. Each integration delegates formatting to Prettier or a loaded language plugin. See the printer implementation for the integration point.

Features

  • Support for Additional Languages: Extend embedded formatting to languages such as XML, SQL, PHP, and more. See Language-Specific Options for the supported languages and their default identifiers.

  • Dual Identification Modes: Identify embedded languages by block comments /* comment */ `...` or tags tag`...` preceding the template literals.

  • Customizable Language Comments or Tags: Customize the comments or tags used for identifying the embedded languages.

  • Formatting Opt-out Mechanism: Offer the capability to deactivate formatting for certain comments or tags, including the built-in ones (html, css...) supported by the embedded-language-formatting option.

  • Configurable Formatting Style: Provide additional options to tailor the formatting style for embedded languages.

  • Strongly Typed API: Benefit from comprehensive type support for configuring this plugin's options.

  • Easy Integration: Integrate with the existing Prettier setup seamlessly, requiring minimal configuration to get started.

Installation

npm i -D prettier prettier-plugin-embed

Install Prettier 3 in the project that runs formatting. The consumer supplies the formatter and its language plugins.

Install the formatter plugin for each embedded language you use as a separate project dependency; the Language-Specific Options section shows which integrations require one.

Choose Prettier and runtime versions supported by every loaded language plugin. Parser availability and syntax support follow the installed formatter version.

<details> <summary>Dependency resolution in strict installations</summary>

The plugin loads Prettier through static imports, which resolve from the plugin's installation location. Standard project installs and Yarn's default Plug'n'Play dependency fallback allow these imports to access the project's installed Prettier.

Yarn projects using pnpFallbackMode: none, and pnpm projects using enableGlobalVirtualStore: true with hoisting disabled, need an explicit dependency relationship for this resolution. For these configurations, add the following to .yarnrc.yml (Yarn) or pnpm-workspace.yaml (pnpm) to connect the plugin to the project's installed Prettier:

packageExtensions:
  "prettier-plugin-embed@*":
    peerDependencies:
      prettier: ">=3.0.0 <4"

Projects can also use Yarn's default pnpFallbackMode: dependencies-only or pnpm's project-local virtual store (enableGlobalVirtualStore: false).

</details>

Usage

Playground

Try the plugin in the online playground. Edit JavaScript or TypeScript alongside your .prettierrc configuration, including the plugins array and embedded-language options. Formatting runs locally in your browser.

To report a formatting issue, keep the original code in Input, enable Compare to inspect the native Prettier output, then use Copy issue report. The report includes the input, configuration, output or error, formatter versions, and a shareable playground link. Share copies a link containing the current example and configuration.

See the playground guide for local development, keyboard shortcuts, browser limitations, and GitHub Pages deployment.

Getting Started…

Description from the npm listing.

  • prettier
  • plugin
  • prettier-plugin
  • embed
  • embedded
  • embedded-language
  • format

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

prettier-plugin-embed weekly downloads on npm, last 90 days: 49,393 weekly downloads as of Oct 18, 2026, -30.8% over 90 days.prettier-plugin-embedWeekly downloads on npm · Last 90 days49,393downloads / week-30.8% over 90 days020K40K60K80K100K120K140K160KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
prettier-plugin-embed weekly downloads on npm, last 90 days: 49,393 weekly downloads as of Oct 18, 2026, -30.8% over 90 days.

7/30/90-day growth

prettier-plugin-embed weekly downloads growth on npm: -54.7% over 7 days, -56.7% over 30 days, -30.8% over 90 days.prettier-plugin-embedWeekly downloads growth on npm49,393downloads / week now7-day growth-59,685 weekly downloads-54.7%30-day growth-64,690 weekly downloads-56.7%90-day growth-21,987 weekly downloads-30.8%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
prettier-plugin-embed weekly downloads growth on npm: -54.7% over 7 days, -56.7% over 30 days, -30.8% over 90 days.

Ranking history

prettier-plugin-embed npm ranking history: currently #592 (by weekly downloads).prettier-plugin-embednpm ranking · by weekly downloads · Last 90 days#592current rank#578#580#582#584#586#588#590#592#594Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
prettier-plugin-embed npm ranking history: currently #592 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 30, #12 (overall #592)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 1, #8 (overall #8)
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 prettier-plugin-embed
Date (UTC)Weekly downloadsChange vs. previous
49,393+3.8K
45,615-5.8K
51,399-5.4K
56,767-23.7K
80,449-23.9K
104,3970
104,397-4.7K
109,078-1.1K
110,212-9K
119,198+5.1K
114,076+3.4K
110,671-246
110,917-25.7K
136,569—

Similar npm Prettier plugins plugins

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