Skip to content
PluginStats

babel-plugin-transform-import-meta weekly downloads statistics

By javiertury · npm · Babel plugins

Transforms import.meta for nodejs environments

View on npm Fresh · Dec 6, 2026

babel-plugin-transform-import-meta has 744,262 recorded weekly downloads on npm, an increase of 5.0% over the past 30 days, ranking #326 of 3,247 tracked listings.

Weekly downloads
744,262
Official API · Dec 5, 2026
7-day growth
+17.5%
+111.1K weekly downloads
30-day growth
+5.0%
+35.6K weekly downloads
90-day growth
+33.5%
+186.8K weekly downloads
Rank
#326
▲ 5 in 7 days

About babel-plugin-transform-import-meta

babel-plugin-transform-import-meta

Transforms import.meta for nodejs environments. This plugin supports transforming the following apis:

  • import.meta.dirname
  • import.meta.filename
  • import.meta.resolve(specifier)
  • import.meta.url

import.meta.dirname

console.log(import.meta.dirname);

Is replaced with

console.log(__dirname);

import.meta.filename

console.log(import.meta.filename);

Is replaced with

console.log(__filename);

import.meta.resolve(specifier)

console.log(import.meta.resolve(myCustomFunction('path', 'file')));

Is replaced with

console.log(require('url').pathToFileURL(require.resolve(myCustomFunction('path', 'file'))).toString());

import.meta.url

console.log(import.meta.url);

Is replaced with

console.log(require('url').pathToFileURL(__filename).toString());

Installation

Install this package

npm install --save-dev babel-plugin-transform-import-meta

and add it to your babel plugins in babel.config.json

{
  "plugins": [
    "babel-plugin-transform-import-meta"
  ]
}

Settings

ES6 modules

It's possible to use ES6 modules for the output. Useful to delegate module transformation to other plugins.

{
  "plugins": [
    ["babel-plugin-transform-import-meta", { "module": "ES6" }]
  ]
}

Credits

Based on a previous project "babel-plugin-import-meta" by The Polymer Authors

Description from the npm listing.

  • babel-plugin
  • import-meta

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-import-meta weekly downloads on npm, last 90 days: 744,262 weekly downloads as of Dec 5, 2026, +33.5% over 90 days.babel-plugin-transform-import-metaWeekly downloads on npm · Last 90 days744,262downloads / week+33.5% over 90 days0200K400K600K800KSep 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-import-meta weekly downloads on npm, last 90 days: 744,262 weekly downloads as of Dec 5, 2026, +33.5% over 90 days.

7/30/90-day growth

babel-plugin-transform-import-meta weekly downloads growth on npm: +17.5% over 7 days, +5.0% over 30 days, +33.5% over 90 days.babel-plugin-transform-import-metaWeekly downloads growth on npm744,262downloads / week now7-day growth+111,071 weekly downloads+17.5%30-day growth+35,600 weekly downloads+5.0%90-day growth+186,759 weekly downloads+33.5%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
babel-plugin-transform-import-meta weekly downloads growth on npm: +17.5% over 7 days, +5.0% over 30 days, +33.5% over 90 days.

Ranking history

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

Listing placement

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

Listing placement

Babel plugins263 listings · 14 pages · page 8, #16 (overall #156)
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-import-meta
Date (UTC)Weekly downloadsChange vs. previous
744,262+1.1K
743,134+33K
710,169+30.5K
679,622+17.2K
662,463+20.4K
642,069+6.9K
635,172+2K
633,191+3.9K
629,279-18.5K
647,734-21.7K
669,399-12.6K
681,981-6.3K
688,306-9.5K
697,824—

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