prettier-plugin-angular weekly downloads statistics
By p-otero · npm · Prettier plugins
Prettier plugin for Angular HTML attribute alignment and sorting
prettier-plugin-angular has 549 recorded weekly downloads on npm, a decrease of 12.9% over the past 30 days.
It ranks #1483 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -47.4%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About prettier-plugin-angular
prettier-plugin-angular
A Prettier plugin for Angular HTML templates that formats, aligns, and sorts element attributes.
What it does
Attribute alignment
Attributes are formatted using the minimum number of lines needed:
• Single line — if everything fits within printWidth: • Aligned — first attribute inline with the tag, rest aligned to the same column: • Fallback — if the tag itself is too long to inline the first attribute, each attribute on its own line indented by tabWidth:
Attribute sorting
Attributes are sorted by category in this order:
| Category | Examples |
| ref | #myRef | | structural | *ngIf, *ngFor | | twoWay | [(ngModel)] | | input | [value], [disabled], [attr.aria-label] | | output | (click), (ngModelChange) | | animation | [@fadeIn] | | static | id="x", class="foo", formControlName="x" | | boolean | disabled, required, showIcon |
Self-closing elements
Elements with no real children are always output as self-closing, regardless of how they were written in the source:
This also applies to elements with only whitespace between their tags.
Angular control flow formatted
Elements inside @if, @for, @switch, @defer and other Angular control flow blocks are fully formatted — not emitted verbatim:
Install
Configure
In .prettierrc:
Options
| Option | Type | Default | Description |
| angularAttributeSort | boolean | true | Sort attributes by category | | angularAttributeOrder | string[] | ["ref","structural","twoWay","input","output","animation","static","boolean"] | Category order (any subset, in your preferred order) |
Full example
Input:
Output:
Description from the npm listing.
- prettier
- prettier-plugin
- angular
- html
- formatter
Where prettier-plugin-angular 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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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)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-angular. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.