Skip to content
PluginStats

prettier-plugin-insert-comma weekly downloads statistics

By refirst11 · npm · Prettier plugins

A Prettier plugin for inserting missing commas in multi-line objects.

View on npm Fresh · Dec 6, 2026

prettier-plugin-insert-comma has 64 recorded weekly downloads on npm, a decrease of 48.4% over the past 30 days, ranking #2717 of 3,247 tracked listings.

Weekly downloads
64
Official API · Dec 5, 2026
7-day growth
-23.8%
-20 weekly downloads
30-day growth
-48.4%
-60 weekly downloads
90-day growth
+357%
+50 weekly downloads
Rank
#2717
▼ 186 in 7 days

About prettier-plugin-insert-comma

prettier-plugin-insert-comma

A Prettier plugin that automatically inserts missing commas in multi-line object properties before formatting.

Prettier cannot format code with syntax errors like missing commas in objects. This plugin runs as a preprocessor to insert commas between properties, allowing Prettier to format your code successfully.

The plugin first checks the original source with Prettier's language parser. If the parser reports a missing comma, it inserts a separator and checks again. This preserves literal contents, including regular expressions, JSX text, and nested template strings. Comments, shorthand properties, methods, numeric and Unicode keys are supported. Trailing commas are left to Prettier's settings.

Recovery requires another parse for each missing comma and is limited to 100 insertions per file. If recovery fails or reaches that limit without producing valid syntax, the original source is passed back to Prettier for its normal error reporting. Other syntax errors are not repaired.

Requirements

  • Prettier 3.7.0 or higher

Example

Before — Prettier would throw a parse error:

const config = {
  host: 'localhost'
  port: 3000
  options: {
    debug: true
    verbose: false
  }
}

After — commas are inserted, Prettier formats normally:

const config = {
  host: 'localhost',
  port: 3000,
  options: {
    debug: true,
    verbose: false,
  },
};

Installation

Install prettier-plugin-insert-comma as a dev dependency:

npm install -D prettier prettier-plugin-insert-comma

Then add the plugin to your Prettier configuration:

// .prettierrc
{
  "plugins": ["prettier-plugin-insert-comma"],
}

For JSON files, you need to specify the parser explicitly with overrides:

{
  "plugins": ["prettier-plugin-insert-comma"],
  "overrides": [
    {
      "files": ["*.json"],
      "options": {
        "parser": "json",
        "quoteProps": "preserve",
        "singleQuote": false,
        "trailingComma": "none"
      }
    }
  ]
}

Supported Languages

Language
TypeScript, TSX
JavaScript, JSX
JSON

Description from the npm listing.

  • prettier
  • prettier-plugin
  • comma
  • missing-comma
  • auto-fix
  • typescript
  • javascript
  • json

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-insert-comma weekly downloads on npm, last 90 days: 64 weekly downloads as of Dec 5, 2026, +357% over 90 days.prettier-plugin-insert-commaWeekly downloads on npm · Last 90 days64downloads / week+357% over 90 days050100150200250300Sep 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-insert-comma weekly downloads on npm, last 90 days: 64 weekly downloads as of Dec 5, 2026, +357% over 90 days.

7/30/90-day growth

prettier-plugin-insert-comma weekly downloads growth on npm: -23.8% over 7 days, -48.4% over 30 days, +357% over 90 days.prettier-plugin-insert-commaWeekly downloads growth on npm64downloads / week now7-day growth-20 weekly downloads-23.8%30-day growth-60 weekly downloads-48.4%90-day growth+50 weekly downloads+357%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-insert-comma weekly downloads growth on npm: -23.8% over 7 days, -48.4% over 30 days, +357% over 90 days.

Ranking history

prettier-plugin-insert-comma npm ranking history: currently #2717 (by weekly downloads).prettier-plugin-insert-commanpm ranking · by weekly downloads · Last 90 days#2717current rank#1600#1800#2000#2200#2400#2600#2800Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
prettier-plugin-insert-comma npm ranking history: currently #2717 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 136, #17 (overall #2,717)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 6, #4 (overall #104)
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-insert-comma
Date (UTC)Weekly downloadsChange vs. previous
64-5
69+15
54+27
27+1
26-21
47-18
65-19
84-12
96-39
135-14
149-5
154+22
132+18
114—

Similar npm Prettier plugins plugins

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