Skip to content
PluginStats

prettier-edge weekly downloads statistics

By edge-js · npm · Prettier plugins

Prettier plugin for formatting AdonisJS Edge templates.

View on npm Fresh · Dec 6, 2026

prettier-edge has 70,974 recorded weekly downloads on npm, an increase of 24.3% over the past 30 days, ranking #700 of 3,247 tracked listings.

Weekly downloads
70,974
Official API · Dec 5, 2026
7-day growth
-5.9%
-4.5K weekly downloads
30-day growth
+24.3%
+13.9K weekly downloads
90-day growth
+126%
+39.5K weekly downloads
Rank
#700
▼ 26 in 7 days

About prettier-edge

<div align="center">

prettier-plugin-edge

A Prettier plugin for AdonisJS Edge templates.

[![gh-workflow-image]][gh-workflow-url] [![npm-image]][npm-url] [![npm-downloads-image]][npm-url] [![license-image]][license-url] [![node-image]][node-url] [![prettier-image]][prettier-url]

One pass formats your HTML, your Edge tags and interpolations, the JavaScript inside them, and the embedded <script> / <style> blocks.

</div>
<table> <tr> <td><b>Before</b></td> <td><b>After</b></td> </tr> <tr> <td>
@if(showFooter)
<footer class="border-t border-gray-200">
<div class="container mx-auto py-8">
@each(section in sections)
<h3>{{section.title}}</h3>
<ul>
@each(item in section.items)
<li><a href="{{item.href}}">{{item.label}}</a></li>
@end
</ul>
@end
</div>
</footer>
@end
</td> <td>
@if(showFooter)
  <footer class="border-t border-gray-200">
    <div class="container mx-auto py-8">
      @each(section in sections)
        <h3>{{ section.title }}</h3>
        <ul>
          @each(item in section.items)
            <li><a href="{{ item.href }}">{{ item.label }}</a></li>
          @end
        </ul>
      @end
    </div>
  </footer>
@end
</td> </tr> </table>

Install

npm install --save-dev prettier prettier-plugin-edge

Prettier auto-detects the plugin for .edge files when it is a project dependency — no .prettierrc changes required.

npx prettier --write "resources/views/**/*.edge"

What it formats

HTMLTag and attribute layout, indentation, attribute wrapping at printWidth, self-closing void elements.
Edge interpolations{{ … }}, {{{ … }}}, @{{ … }}, @{{{ … }}}, {{-- … --}}.
Edge tagsBlock (@if, @each, @component, @slot, @pushTo, @can, @error, …), inline (@let, @include, @inject, @vite, …), void (@!card(...)), branches (@elseif, @else), raw (@raw … @end).
Components-as-tags@card(...) … @end and @!card({...}) with arbitrarily nested object and array arguments.
Embedded <script>Prettier's JavaScript formatter.
Embedded <style>Prettier's CSS formatter.
JavaScript in {{ … }}Prettier's JavaScript formatter, with printWidth adjusted for the host indent.
Alpine.js / Livewire attrs@click="…", @click.prevent="…", @toggle-mobile-nav.window="…" — recognised as HTML attributes, not Edge tags.
Preserved verbatim@raw … @end bodies, <pre>, <textarea>, <!DOCTYPE …>, <?xml … ?>, <![CDATA[ … ]]>, conditional comments, HTML entities.

Worked examples

<details> <summary><b>Dynamic attributes with embedded JavaScript</b></summary>
<button {{
  $props
    .merge({ type: 'button', class: ['btn', 'btn-primary'] })
    .toAttrs()
}}>
  {{{ await $slots.main() }}}
</button>

The {{ … }} body is formatted with Prettier's JavaScript formatter, and the printer glues <button {{ and }}> around the indented expression so the layout reads naturally.

</details> <details> <summary><b>Multi-line tag arguments collapse against the parens</b></summary>
@!input.control({
  type: 'email',
  name: 'email',
  required: true,
  placeholder: 'Subscribe to our newsletter',
})

Object and array literals at the end of a @tag(...) argument list collapse onto the closing ) rather than wrapping it onto its own line.

</details> <details> <summary><b>Long HTML attributes wrap, but the value is never split</b></summary>
<div
  class="container mx-auto px-5 lg:px-10 py-24 lg:border-x border-woodsmoke-900 relative"
>
  …
</div>

The plugin never wraps inside a class="…" value — Tailwind users keep their utility ordering intact.

</details> <details> <summary><b>SVG: containers and self-closing leaves</b></summary>
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
  <path d="M12 2L2 7l10 5 10-5-10-5z" fill="currentColor" />
  <circle cx="12" cy="12" r="3" />
  <g transform="translate(4,4)">
    <rect width="16" height="16" rx="2" />
  </g>
</svg>

SVG containers and leaves are treated as block-level so they always sit on their own lines, with a space before /> when attributes fit.

</details>

Options…

Description from the npm listing.

  • prettier
  • prettier-plugin
  • edge
  • edgejs
  • adonisjs
  • template
  • formatter

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-edge weekly downloads on npm, last 90 days: 70,974 weekly downloads as of Dec 5, 2026, +126% over 90 days.prettier-edgeWeekly downloads on npm · Last 90 days70,974downloads / week+126% over 90 days020K40K60K80K100KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
prettier-edge weekly downloads on npm, last 90 days: 70,974 weekly downloads as of Dec 5, 2026, +126% over 90 days.

7/30/90-day growth

prettier-edge weekly downloads growth on npm: -5.9% over 7 days, +24.3% over 30 days, +126% over 90 days.prettier-edgeWeekly downloads growth on npm70,974downloads / week now7-day growth-4,469 weekly downloads-5.9%30-day growth+13,861 weekly downloads+24.3%90-day growth+39,537 weekly downloads+126%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-edge weekly downloads growth on npm: -5.9% over 7 days, +24.3% over 30 days, +126% over 90 days.

Ranking history

prettier-edge npm ranking history: currently #700 (by weekly downloads).prettier-edgenpm ranking · by weekly downloads · Last 90 days#700current rank#660#680#700#720#740#760#780Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
prettier-edge npm ranking history: currently #700 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 35, #20 (overall #700)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 1, #9 (overall #9)
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-edge
Date (UTC)Weekly downloadsChange vs. previous
70,974-795
71,769-1.8K
73,616+1.2K
72,426-1.5K
73,966-892
74,858-1.3K
76,140+697
75,443-868
76,311-2.5K
78,800-3.3K
82,117+2.6K
79,497+802
78,695+1K
77,694—

Similar npm Prettier plugins plugins

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