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 · Oct 18, 2026

prettier-plugin-organize-class-members has 453 recorded weekly downloads on npm, an increase of 58.4% over the past 30 days, ranking #1563 of 2,322 tracked listings.

Weekly downloads
453
Official API · Oct 18, 2026
7-day growth
-38.7%
-286 weekly downloads
30-day growth
+58.4%
+167 weekly downloads
90-day growth
+11.6%
+47 weekly downloads
Rank
#1563
Among tracked npm listings

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: 453 weekly downloads as of Oct 18, 2026, +11.6% over 90 days.prettier-plugin-organize-class-membersWeekly downloads on npm · Last 90 days453downloads / week+11.6% over 90 days02004006008001KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
prettier-plugin-organize-class-members weekly downloads on npm, last 90 days: 453 weekly downloads as of Oct 18, 2026, +11.6% over 90 days.

7/30/90-day growth

prettier-plugin-organize-class-members weekly downloads growth on npm: -38.7% over 7 days, +58.4% over 30 days, +11.6% over 90 days.prettier-plugin-organize-class-membersWeekly downloads growth on npm453downloads / week now7-day growth-286 weekly downloads-38.7%30-day growth+167 weekly downloads+58.4%90-day growth+47 weekly downloads+11.6%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
prettier-plugin-organize-class-members weekly downloads growth on npm: -38.7% over 7 days, +58.4% over 30 days, +11.6% over 90 days.

Ranking history

prettier-plugin-organize-class-members npm ranking history: currently #1563 (by weekly downloads).prettier-plugin-organize-class-membersnpm ranking · by weekly downloads · Last 90 days#1563current rank#1525#1530#1535#1540#1545#1550#1555#1560#1565Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
prettier-plugin-organize-class-members npm ranking history: currently #1563 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 79, #7 (overall #1,567)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 2, #19 (overall #39)
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 (122)
Recent weekly downloads observations for prettier-plugin-organize-class-members
Date (UTC)Weekly downloadsChange vs. previous
453+99
354-2
356+49
307-89
396-481
8770
877+138
739-19
758-12
770+110
660+14
646+312
334-139
473—

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 Oct 20, 2026. See the methodology.