Skip to content
PluginStats

babel-plugin-transform-replace-expressions weekly downloads statistics

By jviide · npm · Babel plugins

Replace JavaScript expressions with other expressions

View on npm Fresh · Oct 17, 2026

babel-plugin-transform-replace-expressions has 60,174 recorded weekly downloads on npm, a decrease of 47.9% over the past 30 days.

It ranks #519 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -50.1%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
60,174
Official API · Oct 17, 2026
7-day growth
-50.3%
-60.9K weekly downloads
30-day growth
-47.9%
-55.3K weekly downloads
90-day growth
-50.1%
-60.4K weekly downloads
Rank
#519
Among tracked npm listings

About babel-plugin-transform-replace-expressions

babel-plugin-transform-replace-expressions

Replace JavaScript expressions with other expressions.

Installation

Example

Input file:

.babelrc:

Output:

Conflict resolution

A conflict happens when two replacements have the same Babel abstract syntax tree representation. For example expressions typeof A and typeof (A) are formatted differently but have the same AST representation as far as the plugin is concerned. In those situations the default is to raise an error, and can be overwritten by setting the option allowConflictingReplacements to true.

You can also always give the replacements as an array of key-value pairs. When allowConflictingReplacements is set to true the _last_ conflicting replacement gets selected.

Notes

• Replacements are only applied to expressions. Therefore replacing DEBUG with false in const DEBUG = true does nothing, but for if (DEBUG) {} the result is if (false) {}. • Only *full* expressions count. You can't replace env in process.env.NODE_ENV, you have to replace process.env, which is a proper expression in Babel AST. • A replacement is only applied when the result is valid JavaScript. For example replacing a with 2 in the following code: yields

License

This plugin is licensed under the MIT license. See LICENSE.

Description from the npm listing.

  • babel-plugin

Where babel-plugin-transform-replace-expressions sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,248 listings · 113 pages · page 26, #19 (overall #519)
All npm: every listing in weekly downloads order
PNG SVG
Babel plugins251 listings · 13 pages · page 12, #12 (overall #232)
Babel plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

babel-plugin-transform-replace-expressions weekly downloads on npm, last 90 days: 60,174 weekly downloads as of Oct 17, 2026, -50.1% over 90 days.babel-plugin-transform-replace-express…Weekly downloads on npm · Last 90 days60,174downloads / week-50.1% over 90 days60K80K100K120K140K160K180KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
babel-plugin-transform-replace-expressions weekly downloads on npm, last 90 days: 60,174 weekly downloads as of Oct 17, 2026, -50.1% over 90 days.
PNG SVG

7/30/90-day growth

babel-plugin-transform-replace-expressions weekly downloads growth on npm: -50.3% over 7 days, -47.9% over 30 days, -50.1% over 90 days.babel-plugin-transform-replace-express…Weekly downloads growth on npm60,174downloads / week now7-day growth-60,866 weekly downloads-50.3%30-day growth-55,310 weekly downloads-47.9%90-day growth-60,380 weekly downloads-50.1%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
babel-plugin-transform-replace-expressions weekly downloads growth on npm: -50.3% over 7 days, -47.9% over 30 days, -50.1% over 90 days.
PNG SVG

Ranking history

babel-plugin-transform-replace-expressions npm ranking history: currently #519 (by weekly downloads).babel-plugin-transform-replace-express…npm ranking · by weekly downloads · Last 90 days#519current rank#517#518#519#520#521Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
babel-plugin-transform-replace-expressions npm ranking history: currently #519 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (121)
Recent weekly downloads observations for babel-plugin-transform-replace-expressions
Date (UTC)Weekly downloadsChange vs. previous
60,174-13K
73,134+276
72,858-26.5K
99,320-23.5K
122,7740
122,774-407
123,181+2.1K
121,040+3.1K
117,937+2.7K
115,194+3.4K
111,817-2.8K
114,638-23.9K
138,492+3.7K
134,774—

Similar npm Babel plugins plugins

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-replace-expressions. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.