Skip to content
PluginStats

babel-plugin-transform-es2015-computed-properties weekly downloads statistics

By babel (206 listings) · npm · Babel plugins

Compile ES2015 computed properties to ES5

View on npm Fresh · Dec 6, 2026

babel-plugin-transform-es2015-computed-properties has 1,337,096 recorded weekly downloads on npm, a decrease of 4.6% over the past 30 days, ranking #261 of 3,247 tracked listings.

Weekly downloads
1,337,096
Official API · Dec 5, 2026
7-day growth
-0.2%
-2.9K weekly downloads
30-day growth
-4.6%
-64.8K weekly downloads
90-day growth
-3.7%
-51.5K weekly downloads
Rank
#261
▼ 3 in 7 days

About babel-plugin-transform-es2015-computed-properties

babel-plugin-transform-es2015-computed-properties

Compile ES2015 computed properties to ES5

Example

In

var obj = {
  ["x" + foo]: "heh",
  ["y" + bar]: "noo",
  foo: "foo",
  bar: "bar"
};

Out

var _obj;

function _defineProperty(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }

  return obj;
}

var obj = (
  _obj = {},
  _defineProperty(_obj, "x" + foo, "heh"),
  _defineProperty(_obj, "y" + bar, "noo"),
  _defineProperty(_obj, "foo", "foo"),
  _defineProperty(_obj, "bar", "bar"),
  _obj
);

Installation

npm install --save-dev babel-plugin-transform-es2015-computed-properties

Usage

Via .babelrc (Recommended)

.babelrc

Without options:

{
  "plugins": ["transform-es2015-computed-properties"]
}

With options:

{
  "plugins": [
    ["transform-es2015-computed-properties", {
      "loose": true
    }]
  ]
}
Via CLI
babel --plugins transform-es2015-computed-properties script.js
Via Node API
require("babel-core").transform("code", {
  plugins: ["transform-es2015-computed-properties"]
});

Options

loose

boolean, defaults to false

Just like method assignment in classes, in loose mode, computed property names use simple assignments instead of being defined. This is unlikely to be an issue in production code.

Example

In

var obj = {
  ["x" + foo]: "heh",
  ["y" + bar]: "noo",
  foo: "foo",
  bar: "bar"
};

Out

var _obj;

var obj = (
  _obj = {},
  _obj["x" + foo] = "heh",
  _obj["y" + bar] = "noo",
  _obj.foo = "foo",
  _obj.bar = "bar",
  _obj
);

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-es2015-computed-properties weekly downloads on npm, last 90 days: 1,337,096 weekly downloads as of Dec 5, 2026, -3.7% over 90 days.babel-plugin-transform-es2015-computed…Weekly downloads on npm · Last 90 days1,337,096downloads / week-3.7% over 90 days0500K1M1.5M2M2.5MSep 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-es2015-computed-properties weekly downloads on npm, last 90 days: 1,337,096 weekly downloads as of Dec 5, 2026, -3.7% over 90 days.

7/30/90-day growth

babel-plugin-transform-es2015-computed-properties weekly downloads growth on npm: -0.2% over 7 days, -4.6% over 30 days, -3.7% over 90 days.babel-plugin-transform-es2015-computed…Weekly downloads growth on npm1,337,096downloads / week now7-day growth-2,940 weekly downloads-0.2%30-day growth-64,815 weekly downloads-4.6%90-day growth-51,543 weekly downloads-3.7%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
babel-plugin-transform-es2015-computed-properties weekly downloads growth on npm: -0.2% over 7 days, -4.6% over 30 days, -3.7% over 90 days.

Ranking history

babel-plugin-transform-es2015-computed-properties npm ranking history: currently #261 (by weekly downloads).babel-plugin-transform-es2015-computed…npm ranking · by weekly downloads · Last 90 days#261current rank#50#100#150#200#250#300Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
babel-plugin-transform-es2015-computed-properties npm ranking history: currently #261 (by weekly downloads).

Listing placement

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

Listing placement

Babel plugins263 listings · 14 pages · page 7, #15 (overall #135)
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-es2015-computed-properties
Date (UTC)Weekly downloadsChange vs. previous
1,337,096-7.2K
1,344,288+7K
1,337,296+27.6K
1,309,691-5.3K
1,315,024+11.9K
1,303,134-20.9K
1,324,001-16K
1,340,036-13.7K
1,353,778-13.6K
1,367,373-33.6K
1,400,989-9
1,400,998+10.8K
1,390,235+44.2K
1,345,987—

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-es2015-computed-properties. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.