Skip to content
PluginStats

prettier-plugin-ocd weekly downloads statistics

By nksrentas · npm · Prettier plugins

A Prettier plugin that automatically formats JSX attributes in ascending length order (creating a left triangle pattern), making React components more visually organized and consistent.

View on npm Fresh · Oct 17, 2026

prettier-plugin-ocd has 4 recorded weekly downloads on npm, a decrease of 20.0% over the past 30 days.

It ranks #2059 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by 0.0%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
4
Official API · Oct 17, 2026
7-day growth
+33.3%
+1 weekly downloads
30-day growth
-20.0%
-1 weekly downloads
90-day growth
0.0%
0 weekly downloads
Rank
#2059
Among tracked npm listings

About prettier-plugin-ocd

Prettier Plugin OCD :)

A Prettier plugin that automatically formats JSX attributes in ascending length order (creating a left triangle pattern), making React components more visually organized and consistent.

Features

• Automatically sorts JSX attributes by length (shortest to longest) • Creates a visually appealing left triangle pattern • Preserves non-JSX content • Handles multiple JSX elements in the same file • Full TypeScript support • Maintains Prettier's high standards for code formatting

Installation

Using npm:

Using yarn:

Usage

The plugin will be automatically picked up by Prettier. No additional configuration is needed.

Before:

After:

Configuration

This plugin works out of the box with Prettier's default configuration. No additional settings are required.

How It Works

The plugin uses a sophisticated attribute processing system that:

1. Parses the JSX using Babel 2. Identifies all JSX attributes 3. Calculates the length of each attribute 4. Sorts them in ascending order 5. Generates the formatted code while preserving all other formatting

License

MIT

Credits

Created by Nikos Rentas

FAQ

Q: Will this affect my code's functionality?

A: No, the plugin only changes the order of JSX attributes, which doesn't affect functionality.

Q: Does it work with all JSX/TSX files?

A: Yes, the plugin supports both JSX and TSX files.

Q: What happens if there's an error?

A: The plugin gracefully handles errors by returning the original code unchanged.

Requirements

• Node.js >= 14 • Prettier >= 2.0.0

Known Issues

None at the moment. If you find any issues, please report them in the GitHub issue tracker.

Description from the npm listing.

  • prettier
  • prettier-plugin
  • left-triangle
  • triangle
  • react
  • jsx
  • tsx
  • props
  • ocd

Where prettier-plugin-ocd 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.

All npm2,248 listings · 113 pages · page 103, #20 (overall #2060)
All npm: every listing in weekly downloads order
PNG SVG
Prettier plugins241 listings · 13 pages · page 8, #7 (overall #147)
Prettier plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

prettier-plugin-ocd weekly downloads on npm, last 90 days: 4 weekly downloads as of Oct 17, 2026, 0.0% over 90 days.prettier-plugin-ocdWeekly downloads on npm · Last 90 days4downloads / week0.0% over 90 days0246810121416Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
prettier-plugin-ocd weekly downloads on npm, last 90 days: 4 weekly downloads as of Oct 17, 2026, 0.0% over 90 days.
PNG SVG

7/30/90-day growth

prettier-plugin-ocd weekly downloads growth on npm: +33.3% over 7 days, -20.0% over 30 days, 0.0% over 90 days.prettier-plugin-ocdWeekly downloads growth on npm4downloads / week now7-day growth+1 weekly downloads+33.3%30-day growth-1 weekly downloads-20.0%90-day growth+0 weekly downloads0.0%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
prettier-plugin-ocd weekly downloads growth on npm: +33.3% over 7 days, -20.0% over 30 days, 0.0% over 90 days.
PNG SVG

Ranking history

prettier-plugin-ocd npm ranking history: currently #2059 (by weekly downloads).prettier-plugin-ocdnpm ranking · by weekly downloads · Last 90 days#2059current rank#2057#2058#2059#2060#2061Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
prettier-plugin-ocd npm ranking history: currently #2059 (by weekly downloads).
PNG SVG

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)
Recent weekly downloads observations for prettier-plugin-ocd
Date (UTC)Weekly downloadsChange vs. previous
40
4+4
00
0-1
10
1-2
30
30
3-1
40
4+1
30
3+2
1—

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-ocd. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.