Skip to content
PluginStats

prettier-plugin-angular weekly downloads statistics

By p-otero · npm · Prettier plugins

Prettier plugin for Angular HTML attribute alignment and sorting

View on npm Fresh · Dec 6, 2026

prettier-plugin-angular has 1,925 recorded weekly downloads on npm, an increase of 15.5% over the past 30 days, ranking #1897 of 3,247 tracked listings.

Weekly downloads
1,925
Official API · Dec 5, 2026
7-day growth
+4.1%
+75 weekly downloads
30-day growth
+15.5%
+259 weekly downloads
90-day growth
+94.8%
+937 weekly downloads
Rank
#1897
▼ 90 in 7 days

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:

    <input type="text" [value]="v" />
    
  • Aligned — first attribute inline with the tag, rest aligned to the same column:

    <p-select [options]="companiesForSelector()"
              [attr.aria-invalid]="form.controls.companyId.invalid"
              id="companyId"
              class="w-full"
              filter
              showClear />
    
  • Fallback — if the tag itself is too long to inline the first attribute, each attribute on its own line indented by tabWidth:

    <my-very-long-component-name
      [options]="items"
      (change)="onChange($event)"
      class="w-full" />
    
Attribute sorting

Attributes are sorted by category in this order:

CategoryExamples
ref#myRef
structural*ngIf, *ngFor
twoWay[(ngModel)]
input[value], [disabled], [attr.aria-label]
output(click), (ngModelChange)
animation[@fadeIn]
staticid="x", class="foo", formControlName="x"
booleandisabled, 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:

<!-- Input -->
<app-my-component [value]="x" [label]="y"></app-my-component>

<!-- Output -->
<app-my-component [value]="x" [label]="y" />

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:

@if (form.controls.companyId.invalid && form.controls.companyId.touched) {
  <small id="companyId-error" class="p-error block mt-1" role="alert">
    {{ 'validation.required' | translate }}
  </small>
}

Install

npm install -D prettier-plugin-angular

Configure

In .prettierrc:

{
  "plugins": ["prettier-plugin-angular"],
  "overrides": [
    {
      "files": "*.html",
      "options": {
        "parser": "angular-attributes",
        "angularAttributeSort": true
      }
    }
  ]
}

Options

OptionTypeDefaultDescription
angularAttributeSortbooleantrueSort attributes by category
angularAttributeOrderstring[]["ref","structural","twoWay","input","output","animation","static","boolean"]Category order (any subset, in your preferred order)

Full example

Input:

<p-select class="w-full" (change)="onChange($event)" [options]="items" inputId="x" #sel showIcon />

Output:

<p-select [options]="items"
          (change)="onChange($event)"
          inputId="x"
          class="w-full"
          #sel
          showIcon />

Description from the npm listing.

  • prettier
  • prettier-plugin
  • angular
  • html
  • 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-plugin-angular weekly downloads on npm, last 90 days: 1,925 weekly downloads as of Dec 5, 2026, +94.8% over 90 days.prettier-plugin-angularWeekly downloads on npm · Last 90 days1,925downloads / week+94.8% over 90 days05001K1.5K2K2.5KSep 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-angular weekly downloads on npm, last 90 days: 1,925 weekly downloads as of Dec 5, 2026, +94.8% over 90 days.

7/30/90-day growth

prettier-plugin-angular weekly downloads growth on npm: +4.1% over 7 days, +15.5% over 30 days, +94.8% over 90 days.prettier-plugin-angularWeekly downloads growth on npm1,925downloads / week now7-day growth+75 weekly downloads+4.1%30-day growth+259 weekly downloads+15.5%90-day growth+937 weekly downloads+94.8%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-angular weekly downloads growth on npm: +4.1% over 7 days, +15.5% over 30 days, +94.8% over 90 days.

Ranking history

prettier-plugin-angular npm ranking history: currently #1897 (by weekly downloads).prettier-plugin-angularnpm ranking · by weekly downloads · Last 90 days#1897current rank#1300#1400#1500#1600#1700#1800#1900Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
prettier-plugin-angular npm ranking history: currently #1897 (by weekly downloads).

Listing placement

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

Listing placement

Prettier plugins267 listings · 14 pages · page 2, #8 (overall #28)
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-angular
Date (UTC)Weekly downloadsChange vs. previous
1,925+26
1,899-198
2,097+100
1,997+123
1,874+99
1,775-68
1,843-7
1,850+18
1,832+196
1,636-36
1,672-131
1,803-57
1,860+44
1,816—

Similar npm Prettier plugins plugins

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