Skip to content
PluginStats

babel-plugin-transform-class-constructor-call weekly downloads statistics

By babel (206 listings) · npm · Babel plugins

This plugin allows Babel to transform class constructors (deprecated)

View on npm Fresh · Dec 6, 2026

babel-plugin-transform-class-constructor-call has 316,511 recorded weekly downloads on npm, a decrease of 8.0% over the past 30 days, ranking #460 of 3,247 tracked listings.

Weekly downloads
316,511
Official API · Dec 5, 2026
7-day growth
-4.0%
-13.1K weekly downloads
30-day growth
-8.0%
-27.7K weekly downloads
90-day growth
-8.1%
-27.8K weekly downloads
Rank
#460
▼ 25 in 7 days

About babel-plugin-transform-class-constructor-call

babel-plugin-transform-class-constructor-call (deprecated)

Proposal Withdrawn: can be solved with decorators.

This plugin allows Babel to transform class constructors.

It basically allows to use the new.target feature on ES2015 classes:

class Point {

  constructor(x, y) {
    this.x = x;
    this.y = y;
  }

  call constructor(x, y) {
    return new Point(x, y);
  }

}

let p1 = new Point(1, 2); // OK
let p2 = Point(3, 4); // OK

Example

Date example

The javascript Date works this way:

// You can get a Date instance using the new keyword
let now = new Date();
console.log(now.getMonth()); // Prints '3'
console.log(now.toString()); // Prints 'Mon Apr 11 2016 13:26:07 GMT+0100 (BST)'

// You can get a string of the current date using Date as a function:
let nowStr = Date();
console.log(nowStr); // Prints 'Mon Apr 11 2016 13:26:07 GMT+0100 (BST)'

It is currently possible to implement something like that using new.target (see example in proposal) and this new feature makes it available for ES2015 classes.

A date implementation could be:

class Date {
  constructor() {
    // ...
  }

  call constructor() {
    let date = new Date();
    return date.toString();
  }
}

let now = new Date(); // Get a Date instance
let nowStr = Date(); // Use the 'call constructor()' part to get a string value of the current date

Installation

npm install --save-dev babel-plugin-transform-class-constructor-call

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-class-constructor-call"]
}
Via CLI
babel --plugins transform-class-constructor-call script.js
Via Node API
require("babel-core").transform("code", {
  plugins: ["transform-class-constructor-call"]
});

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-transform-class-constructor-call weekly downloads on npm, last 90 days: 316,511 weekly downloads as of Dec 5, 2026, -8.1% over 90 days.babel-plugin-transform-class-construct…Weekly downloads on npm · Last 90 days316,511downloads / week-8.1% over 90 days0100K200K300K400K500K600KSep 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-transform-class-constructor-call weekly downloads on npm, last 90 days: 316,511 weekly downloads as of Dec 5, 2026, -8.1% over 90 days.

7/30/90-day growth

babel-plugin-transform-class-constructor-call weekly downloads growth on npm: -4.0% over 7 days, -8.0% over 30 days, -8.1% over 90 days.babel-plugin-transform-class-construct…Weekly downloads growth on npm316,511downloads / week now7-day growth-13,103 weekly downloads-4.0%30-day growth-27,663 weekly downloads-8.0%90-day growth-27,785 weekly downloads-8.1%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
babel-plugin-transform-class-constructor-call weekly downloads growth on npm: -4.0% over 7 days, -8.0% over 30 days, -8.1% over 90 days.

Ranking history

babel-plugin-transform-class-constructor-call npm ranking history: currently #460 (by weekly downloads).babel-plugin-transform-class-construct…npm ranking · by weekly downloads · Last 90 days#460current rank#100#150#200#250#300#350#400#450#500Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
babel-plugin-transform-class-constructor-call npm ranking history: currently #460 (by weekly downloads).

Listing placement

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

Listing placement

Babel plugins263 listings · 14 pages · page 11, #12 (overall #212)
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 (592)
Recent weekly downloads observations for babel-plugin-transform-class-constructor-call
Date (UTC)Weekly downloadsChange vs. previous
316,511-1.3K
317,839-2.9K
320,769+2.6K
318,183-6.7K
324,845+4.3K
320,551-2K
322,507-7.1K
329,614-6.5K
336,139+259
335,880-5.8K
341,635+35
341,600-4.5K
346,056+5.6K
340,439—

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-transform-class-constructor-call. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.