Skip to content
PluginStats

prettier-plugin-organize-class-members weekly downloads statistics

By wdfinch · npm · Prettier plugins

prettier plugin to organize javascript and typescript classes

View on npm Fresh · Dec 6, 2026

prettier-plugin-organize-class-members has 1,717 recorded weekly downloads on npm, an increase of 85.2% over the past 30 days, ranking #1935 of 3,247 tracked listings.

Weekly downloads
1,717
Official API · Dec 5, 2026
7-day growth
-25.2%
-577 weekly downloads
30-day growth
+85.2%
+790 weekly downloads
90-day growth
+368%
+1.4K weekly downloads
Rank
#1935
▼ 189 in 7 days

About prettier-plugin-organize-class-members

Prettier Plugin: Organize Class Members

Organize your Javascript and Typescript classes to keep them consistent.

A plugin that makes Prettier organize your Javascript and Typescript class members.

Features

  • 👍 Supports .js, .jsx, .ts, .tsx files.
  • 🚀 Works out of the box - zero-config required.
  • 💪 Customizable - control exactly how your classes are organized.
  • 🤓 No more messy diffs or merge conflicts from people using different class orderings strategies.
  • 🤯 Never worry about manually ordering class members again
  • 😌 Safe - modifying the order of class members has no effect on code execution.

Caveat

This plugin inherits, extends, and overrides the built-in Prettier parsers for babel and typescript. Therefore it's incompatible with other plugins that do the same. See the troubleshooting section below for more details.

Stability

This plugin is new and currently in beta. It has not been extensively tested in large complex projects. Therefore if you are using this plugin for the first time, please run prettier in dry run mode or in a state where you can easily rollback.

Installation

npm install --save-dev prettier-plugin-organize-class-members
yarn add --dev prettier-plugin-organize-class-members

prettier is a peer dependencies, so make sure you have those installed in your project.

Usage

The plugin will be loaded by Prettier automatically. No configuration needed.

Files containing the substring // organize-class-members-ignore or // tslint:disable:organize-class-members are skipped.

Configuration

This plugin works out of the box and requires no configuration to get started. You may customize how this plugin organizes your classes using the options below in your prettier config file.

Note if you are using a .prettierrc.cjs, you may add the following line to get type support for the options:

// .prettierrc.cjs

module.exports = {
    plugins: [require.resolve('prettier-plugin-organize-class-members')],
    // your other prettier options
}
Options

classSectionOrder

Details: Specify the order of various sections in your classes.
Type: string[]

Supported values:

  1. constructor - Matches the constructor function of the class.
  2. methods - Matches all non-static methods.
  3. staticMethods - Matches all static methods.
  4. properties - Matches all non-static declared properties/fields in the class.
  5. staticProperties - Matches all static declared properties/fields in the class.

Default Value: ['staticProperties','staticMethods','properties','constructor','methods']

If you modify this option, you must follow these rules:

  1. Each value must be used.
  2. No duplicates or unsupported strings may be used.
// .prettierrc.cjs

module.exports = {
    // invalid ❌ - missing staticProperties and methods
    classSectionOrder: ['constructor', 'staticMethods', 'properties'],
    
    // invalid ❌ - constructor is duplcated
    classSectionOrder: ['constructor', 'constructor', 'properties'],

    // invalid ❌ - unsupported values are used
    classSectionOrder: ['someRandomValue', 'someOtherRandomValue', 'properties'],

    // valid ✅ 
    classSectionOrder: ['constructor', 'methods', 'staticMethods', 'properties', 'staticProperties']
}

classAccessibilityOrder

Details: Within a section, specify the order of members (methods and properties) by accessibility.
Type: string[]

Supported values:

  1. private - Matches private members. The following members are considered private.
    1. Those preceded by the typescript private keyword.
    2. Those preceded with a #. See here for more details.
    3. Those preceded with an _ (conventional private members). See here for more details.
  2. protected - Matches all protected members. The following members are considered protected.
    1. Those preceded by the typescript protected keyword.
  3. public - Matches all public members. The following members are considered public.
    1. Those preceded by the typescript public keyword.
    2. Those preceded by neither _, #, private, nor protected.

Default Value: ['public','protected','private']

If you modify this option, you must follow these rules:

  1. Each value must be used.
  2. No duplicates or unsupported strings may be used.
// .prettierrc.cjs

module.exports = {
    // invalid ❌ - missing public
    classAccessibilityOrder: ['private', 'protected'],
    
    // invalid ❌ - private is duplcated
    classAccessibilityOrder: ['private', 'private', 'protected'],

    // invalid ❌ - unsupported values are used
    classAccessibilityOrder: ['someRandomValue', 'someOtherRandomValue', 'private'],

    // valid ✅ 
    classSectionOrder: ['private', 'public', 'protected']
}

classGroupOrder

Details: Within levels of accessibility, divide the members into groups. For example getter and setter methods can be grouped together.
Type: string[]

Supported values:

  1. gettersAndSetters - Matches getter and setter methods. A getter or setter is one of the following:
    1. A method with the word get or set at the start (ex: getDog() {})
    2. A typescript getter and or setter. See here for more details.
  2. everythingElse - Matches all remaining members that could not be assigned to a group.

Default Value: ['everythingElse']

If you modify this option, you must follow these rules:…

Description from the npm listing.

  • prettier
  • prettier-plugin
  • typescript
  • classes
  • organize-classes

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-organize-class-members weekly downloads on npm, last 90 days: 1,717 weekly downloads as of Dec 5, 2026, +368% over 90 days.prettier-plugin-organize-class-membersWeekly downloads on npm · Last 90 days1,717downloads / week+368% 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-organize-class-members weekly downloads on npm, last 90 days: 1,717 weekly downloads as of Dec 5, 2026, +368% over 90 days.

7/30/90-day growth

prettier-plugin-organize-class-members weekly downloads growth on npm: -25.2% over 7 days, +85.2% over 30 days, +368% over 90 days.prettier-plugin-organize-class-membersWeekly downloads growth on npm1,717downloads / week now7-day growth-577 weekly downloads-25.2%30-day growth+790 weekly downloads+85.2%90-day growth+1,350 weekly downloads+368%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-organize-class-members weekly downloads growth on npm: -25.2% over 7 days, +85.2% over 30 days, +368% over 90 days.

Ranking history

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

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 97, #15 (overall #1,935)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 2, #10 (overall #30)
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-organize-class-members
Date (UTC)Weekly downloadsChange vs. previous
1,717-312
2,029-95
2,124-5
2,129+320
1,809-336
2,145-232
2,377+83
2,294+403
1,891+106
1,785+146
1,639+23
1,616+406
1,210+176
1,034—

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-organize-class-members. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.