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

prettier-plugin-insert-comma has 72 recorded weekly downloads on npm, a decrease of 15.3% over the past 30 days, ranking #1781 of 2,322 tracked listings.

Weekly downloads
72
Official API · Oct 18, 2026
7-day growth
-28.0%
-28 weekly downloads
30-day growth
-15.3%
-13 weekly downloads
90-day growth
+157%
+44 weekly downloads
Rank
#1781
Among tracked npm listings

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: 72 weekly downloads as of Oct 18, 2026, +157% over 90 days.prettier-plugin-insert-commaWeekly downloads on npm · Last 90 days72downloads / week+157% over 90 days050100150200250300Jul 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-insert-comma weekly downloads on npm, last 90 days: 72 weekly downloads as of Oct 18, 2026, +157% over 90 days.

7/30/90-day growth

prettier-plugin-insert-comma weekly downloads growth on npm: -28.0% over 7 days, -15.3% over 30 days, +157% over 90 days.prettier-plugin-insert-commaWeekly downloads growth on npm72downloads / week now7-day growth-28 weekly downloads-28.0%30-day growth-13 weekly downloads-15.3%90-day growth+44 weekly downloads+157%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
prettier-plugin-insert-comma weekly downloads growth on npm: -28.0% over 7 days, -15.3% over 30 days, +157% over 90 days.

Ranking history

prettier-plugin-insert-comma npm ranking history: currently #1781 (by weekly downloads).prettier-plugin-insert-commanpm ranking · by weekly downloads · Last 90 days#1781current rank#1768#1770#1772#1774#1776#1778#1780#1782#1784Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
prettier-plugin-insert-comma npm ranking history: currently #1781 (by weekly downloads).

Listing placement

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

Listing placement

Prettier plugins244 listings · 13 pages · page 4, #11 (overall #71)
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-insert-comma
Date (UTC)Weekly downloadsChange vs. previous
72+36
36-2
38-28
660
66-14
800
80-20
100-1
101-11
112+21
91-2
93-15
108-15
123—

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