Skip to content
PluginStats

babel-plugin-transform-async-generator-functions weekly downloads statistics

By babel (206 listings) · npm · Babel plugins

Turn async generator functions into ES2015 generators

View on npm Fresh · Dec 6, 2026

babel-plugin-transform-async-generator-functions has 506,223 recorded weekly downloads on npm, a decrease of 12.7% over the past 30 days, ranking #398 of 3,247 tracked listings.

Weekly downloads
506,223
Official API · Dec 5, 2026
7-day growth
+0.4%
+2.2K weekly downloads
30-day growth
-12.7%
-73.9K weekly downloads
90-day growth
+3.5%
+17.2K weekly downloads
Rank
#398
▼ 14 in 7 days

About babel-plugin-transform-async-generator-functions

babel-plugin-transform-async-generator-functions

Turn async generator functions and for-await statements to ES2015 generators

Example

In

async function* agf() {
  await 1;
  yield 2;
}

Out

var _asyncGenerator = ...

let agf = (() => {
  var _ref = _asyncGenerator.wrap(function* () {
    yield _asyncGenerator.await(1);
    yield 2;
  });

  return function agf() {
    return _ref.apply(this, arguments);
  };
})();

For await example

async function f() {
  for await (let x of y) {
    g(x);
  }
}

Example Usage

async function* genAnswers() {
  var stream = [ Promise.resolve(4), Promise.resolve(9), Promise.resolve(12) ];
  var total = 0;
  for await (let val of stream) {
    total += await val;
    yield total;
  }
}

function forEach(ai, fn) {
  return ai.next().then(function (r) {
    if (!r.done) {
      fn(r);
      return forEach(ai, fn);
    }
  });
}

var output = 0;
forEach(genAnswers(), function(val) { output += val.value })
.then(function () {
  console.log(output); // 42
});

Try it Out in the REPL

Installation

npm install --save-dev babel-plugin-transform-async-generator-functions

Usage

Via .babelrc (Recommended)

.babelrc

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

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-async-generator-functions weekly downloads on npm, last 90 days: 506,223 weekly downloads as of Dec 5, 2026, +3.5% over 90 days.babel-plugin-transform-async-generator…Weekly downloads on npm · Last 90 days506,223downloads / week+3.5% over 90 days0200K400K600K800K1MSep 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-async-generator-functions weekly downloads on npm, last 90 days: 506,223 weekly downloads as of Dec 5, 2026, +3.5% over 90 days.

7/30/90-day growth

babel-plugin-transform-async-generator-functions weekly downloads growth on npm: +0.4% over 7 days, -12.7% over 30 days, +3.5% over 90 days.babel-plugin-transform-async-generator…Weekly downloads growth on npm506,223downloads / week now7-day growth+2,206 weekly downloads+0.4%30-day growth-73,927 weekly downloads-12.7%90-day growth+17,175 weekly downloads+3.5%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
babel-plugin-transform-async-generator-functions weekly downloads growth on npm: +0.4% over 7 days, -12.7% over 30 days, +3.5% over 90 days.

Ranking history

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

Listing placement

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

Listing placement

Babel plugins263 listings · 14 pages · page 10, #18 (overall #198)
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-async-generator-functions
Date (UTC)Weekly downloadsChange vs. previous
506,223+230
505,993+6.5K
499,457+15.5K
483,921-3.8K
487,690+3.4K
484,308-7.2K
491,523-12.5K
504,017-13K
516,998-6.9K
523,848-17.1K
540,913+480
540,433-2.6K
542,993+13.1K
529,922—

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