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 · Dec 6, 2026

prettier-plugin-embed has 119,834 recorded weekly downloads on npm, a decrease of 21.0% over the past 30 days, ranking #614 of 3,247 tracked listings.

Weekly downloads
119,834
Official API · Dec 5, 2026
7-day growth
+15.7%
+16.2K weekly downloads
30-day growth
-21.0%
-31.8K weekly downloads
90-day growth
+34.7%
+30.9K weekly downloads
Rank
#614
▲ 2 in 7 days

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: 119,834 weekly downloads as of Dec 5, 2026, +34.7% over 90 days.prettier-plugin-embedWeekly downloads on npm · Last 90 days119,834downloads / week+34.7% over 90 days050K100K150K200KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
prettier-plugin-embed weekly downloads on npm, last 90 days: 119,834 weekly downloads as of Dec 5, 2026, +34.7% over 90 days.

7/30/90-day growth

prettier-plugin-embed weekly downloads growth on npm: +15.7% over 7 days, -21.0% over 30 days, +34.7% over 90 days.prettier-plugin-embedWeekly downloads growth on npm119,834downloads / week now7-day growth+16,241 weekly downloads+15.7%30-day growth-31,770 weekly downloads-21.0%90-day growth+30,857 weekly downloads+34.7%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-embed weekly downloads growth on npm: +15.7% over 7 days, -21.0% over 30 days, +34.7% over 90 days.

Ranking history

prettier-plugin-embed npm ranking history: currently #614 (by weekly downloads).prettier-plugin-embednpm ranking · by weekly downloads · Last 90 days#614current rank#500#520#540#560#580#600#620#640Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
prettier-plugin-embed npm ranking history: currently #614 (by weekly downloads).

Listing placement

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

Listing placement

Prettier plugins267 listings · 14 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 (170)
Recent weekly downloads observations for prettier-plugin-embed
Date (UTC)Weekly downloadsChange vs. previous
119,834-1.1K
120,904+8.4K
112,464+7.2K
105,294+594
104,700-199
104,899+880
104,019+426
103,593+591
103,002-1.9K
104,921-4.5K
109,405-725
110,130+3.3K
106,800+883
105,917—

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 Dec 6, 2026. See the methodology.