Skip to content
PluginStats

babel-plugin-syntax-trailing-function-commas weekly downloads statistics

By babel (206 listings) · npm · Babel plugins

Compile trailing function commas to ES5

View on npm Fresh · Dec 6, 2026

babel-plugin-syntax-trailing-function-commas has 5,973,565 recorded weekly downloads on npm, a decrease of 6.5% over the past 30 days, ranking #157 of 3,247 tracked listings.

Weekly downloads
5,973,565
Official API · Dec 5, 2026
7-day growth
+13.3%
+701.4K weekly downloads
30-day growth
-6.5%
-418.2K weekly downloads
90-day growth
+24.6%
+1.2M weekly downloads
Rank
#157
▲ 1 in 7 days

About babel-plugin-syntax-trailing-function-commas

babel-plugin-syntax-trailing-function-commas

Compile trailing function commas to ES5

function clownPuppiesEverywhere(
  param1,
  param2,
) { /* ... */ }

clownPuppiesEverywhere(
  'foo',
  'bar',
);

Try in REPL

Example

Basic

This is an example from the Proposal.

Let's say you have this function:

function clownPuppiesEverywhere(
  param1,
  param2
) { /* ... */ }

clownPuppiesEverywhere(
  'foo',
  'bar'
);

If you want to have a new parameter called param3, the diff output would be like that:

function clownPuppiesEverywhere(
  param1,
- param2
+ param2, // Change this line to add a comma
+ param3  // Add param3
) { /* ... */ }

clownPuppiesEverywhere(
  'foo',
- 'bar'
+ 'bar', // Change this line to add a comma
+ 'baz'  // Add param3
);

In total, you have to change 2 lines for the function declaration and 2 lines for each usage.

If you had your function defined with trailing commas:

function clownPuppiesEverywhere(
  param1,
  param2,
) { /* ... */ }

clownPuppiesEverywhere(
  'foo',
  'bar',
);

Adding a new parameter would only change one line in the function declaration and one line for each usage:

function clownPuppiesEverywhere(
  param1,
  param2,
+ param3, // Add param3
) { /* ... */ }

clownPuppiesEverywhere(
  'foo',
  'bar',
+ 'baz', // Add param3
);

In the end, your diff output will be cleaner and easier to read, it would be much quicker to add a new parameter to your functions, it also makes it easier to copy paste elements and move code around.

Installation

npm install --save-dev babel-plugin-syntax-trailing-function-commas

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["syntax-trailing-function-commas"]
}
Via CLI
babel --plugins syntax-trailing-function-commas script.js
Via Node API
require("babel-core").transform("code", {
  plugins: ["syntax-trailing-function-commas"]
});

References

Description from the npm listing.

  • babel-plugin

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

babel-plugin-syntax-trailing-function-commas weekly downloads on npm, last 90 days: 5,973,565 weekly downloads as of Dec 5, 2026, +24.6% over 90 days.babel-plugin-syntax-trailing-function-…Weekly downloads on npm · Last 90 days5,973,565downloads / week+24.6% over 90 days01M2M3M4M5M6M7MSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
babel-plugin-syntax-trailing-function-commas weekly downloads on npm, last 90 days: 5,973,565 weekly downloads as of Dec 5, 2026, +24.6% over 90 days.

7/30/90-day growth

babel-plugin-syntax-trailing-function-commas weekly downloads growth on npm: +13.3% over 7 days, -6.5% over 30 days, +24.6% over 90 days.babel-plugin-syntax-trailing-function-…Weekly downloads growth on npm5,973,565downloads / week now7-day growth+701,359 weekly downloads+13.3%30-day growth-418,157 weekly downloads-6.5%90-day growth+1,177,928 weekly downlo…+24.6%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
babel-plugin-syntax-trailing-function-commas weekly downloads growth on npm: +13.3% over 7 days, -6.5% over 30 days, +24.6% over 90 days.

Ranking history

babel-plugin-syntax-trailing-function-commas npm ranking history: currently #157 (by weekly downloads).babel-plugin-syntax-trailing-function-…npm ranking · by weekly downloads · Last 90 days#157current rank#148#150#152#154#156#158#160#162Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
babel-plugin-syntax-trailing-function-commas npm ranking history: currently #157 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 8, #17 (overall #157)
All npm: every listing in weekly downloads order

Listing placement

Babel plugins263 listings · 14 pages · page 6, #12 (overall #112)
Babel 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 babel-plugin-syntax-trailing-function-commas
Date (UTC)Weekly downloadsChange vs. previous
5,973,565+46.1K
5,927,463+292.6K
5,634,872+319.9K
5,314,991+85.1K
5,229,885+18.5K
5,211,420-37.2K
5,248,610-23.6K
5,272,206-89.1K
5,361,263-272.2K
5,633,500-319.4K
5,952,937-133.8K
6,086,767-4.3K
6,091,087+24.5K
6,066,552—

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/babel-plugin-syntax-trailing-function-commas. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.