plugin-angular-class-decorators-properties weekly downloads statistics
By launcelot66 · npm · Prettier plugins
A simple plugin for Prettier that allows you to automatically sort and modify Angular classes decorators parameters.
plugin-angular-class-decorators-properties has 17 recorded weekly downloads on npm, an increase of 30.8% over the past 30 days, ranking #3022 of 3,247 tracked listings.
About plugin-angular-class-decorators-properties
Intro
Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
This plugin adds support for the Angular class decorators properties (like NgModule or Component) to Prettier.
Getting started
Simply install prettier and plugin-angular-class-decorators-properties as your project’s devDependencies:
npm add --save-dev prettier plugin-angular-class-decorators-properties
# or
yarn add --dev prettier plugin-angular-class-decorators-properties
# or
pnpm add --save-dev prettier plugin-angular-class-decorators-properties
Usage
CLI
npx prettier --write "**/*.ts" --plugin="plugin-angular-class-decorators-properties"
# or
yarn prettier --write "**/*.ts" --plugin="plugin-angular-class-decorators-properties"
# or
pnpm prettier --write "**/*.ts" --plugin="plugin-angular-class-decorators-properties"
Configuration file (.prettierrc)
| Name | Description |
|---|---|
NgModulePropertiesOrder<br/>Type:string[] Default:[] | A list of @NgModule properties in the correct order. All properties outside the list will be sorted in the same order as they were. |
ComponentPropertiesOrder<br/>Type:string[] Default:[] | A list of @Component properties in the correct order. All properties outside the list will be sorted in the same order as they were. |
InjectablePropertiesOrder<br/>Type:string[] Default:[] | A list of @Injectable properties in the correct order. All properties outside the list will be sorted in the same order as they were. |
DirectivePropertiesOrder<br/>Type:string[] Default:[] | A list of @Directive properties in the correct order. All properties outside the list will be sorted in the same order as they were. |
PipePropertiesOrder<br/>Type:string[] Default:[] | A list of @Pipe properties in the correct order. All properties outside the list will be sorted in the same order as they were. |
RemoveNgDecoratorEmptyArrayProperties<br/>Type:boolean Default:false | If set to true will remove properties from decorator object where value is empty array. |
{
"plugins": ["plugin-angular-class-decorators-properties"],
"NgModulePropertiesOrder": ["imports", "providers", "declaration", "bootstrap", "exports"],
"ComponentPropertiesOrder": ["selector"],
"InjectablePropertiesOrder": ["providedIn"],
"DirectivePropertiesOrder": ["selector"],
"PipePropertiesOrder": ["name", "pure", "standalone"],
"RemoveNgDecoratorEmptyArrayProperties": true
}
Description from the npm listing.
- prettier-plugin
- prettier
- formatter
- typescript
- angular
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 plugin-angular-class-decorators-properties 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/plugin-angular-class-decorators-properties. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.