prettier-edge weekly downloads statistics
By edge-js · npm · Prettier plugins
Prettier plugin for formatting AdonisJS Edge templates.
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.
About prettier-edge
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.
<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
| HTML | Tag and attribute layout, indentation, attribute wrapping at printWidth, self-closing void elements. |
| Edge interpolations | {{ … }}, {{{ … }}}, @{{ … }}, @{{{ … }}}, {{-- … --}}. |
| Edge tags | Block (@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.
@!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.
<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.
<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.
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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)Similar npm Prettier plugins plugins
All 20 prettier-edge alternativesData 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.