Skip to content
PluginStats

@ava/babel-plugin-throws-helper weekly downloads statistics

By ava · npm · Babel plugins

Babel plugin for protecting against improper use of `t.throws()` in AVA

View on npm Outdated · Oct 27, 2026

@ava/babel-plugin-throws-helper has 52,781 recorded weekly downloads on npm, a decrease of 5.2% over the past 30 days, ranking #763 of 3,247 tracked listings.

Weekly downloads
52,781
Official API · Dec 5, 2026
7-day growth
-18.1%
-11.7K weekly downloads
30-day growth
-5.2%
-2.9K weekly downloads
90-day growth
-27.8%
-20.3K weekly downloads
Rank
#763
▼ 54 in 7 days

About @ava/babel-plugin-throws-helper

babel-plugin-throws-helper Build Status

Babel plugin for protecting against improper use of t.throws() in AVA

Probably not useful except as an internal plugin for the AVA test runner.

Genesis of the idea.

Issue

I've seen a lot of incorrect use of the throws assertion in other test runner and even done the mistake myself sometimes. Now I'm beginning to see it with AVA too, so would be nice to be preemptive about it.

People don't realize they need to wrap their call in a function, so many end up doing t.throws(foo()) instead of t.throws(() => foo());. It's an easy mistake to make.

The difficulty is that t.throws(foo()) is allowed if foo() returns a promise or a function. There is no good way to differentiate between the two at runtime. So providing a good error message is going to take some AST transform magic.

Solution

See test.js.md for the transformation this plugin performs.

License

MIT © James Talmage

Description from the npm listing.

  • babel-plugin
  • babel
  • helper
  • ava
  • assertion
  • throws

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

@ava/babel-plugin-throws-helper weekly downloads on npm, last 90 days: 52,781 weekly downloads as of Dec 5, 2026, -27.8% over 90 days.@ava/babel-plugin-throws-helperWeekly downloads on npm · Last 90 days52,781downloads / week-27.8% over 90 days020K40K60K80K100KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@ava/babel-plugin-throws-helper weekly downloads on npm, last 90 days: 52,781 weekly downloads as of Dec 5, 2026, -27.8% over 90 days.

7/30/90-day growth

@ava/babel-plugin-throws-helper weekly downloads growth on npm: -18.1% over 7 days, -5.2% over 30 days, -27.8% over 90 days.@ava/babel-plugin-throws-helperWeekly downloads growth on npm52,781downloads / week now7-day growth-11,656 weekly downloads-18.1%30-day growth-2,891 weekly downloads-5.2%90-day growth-20,330 weekly downloads-27.8%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@ava/babel-plugin-throws-helper weekly downloads growth on npm: -18.1% over 7 days, -5.2% over 30 days, -27.8% over 90 days.

Ranking history

@ava/babel-plugin-throws-helper npm ranking history: currently #763 (by weekly downloads).@ava/babel-plugin-throws-helpernpm ranking · by weekly downloads · Last 90 days#763current rank#600#650#700#750#800#850#900Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 20 observations · Updated Dec 5, 2026pluginstats.com
@ava/babel-plugin-throws-helper npm ranking history: currently #763 (by weekly downloads).

Listing placement

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

Listing placement

Babel plugins263 listings · 14 pages · page 13, #13 (overall #253)
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 (170)
Recent weekly downloads observations for @ava/babel-plugin-throws-helper
Date (UTC)Weekly downloadsChange vs. previous
52,781-6.9K
59,727+839
58,888+861
58,027-4K
61,995-384
62,379+50
62,329-2.1K
64,437-2.4K
66,818+1.6K
65,180+961
64,219+5.2K
59,046+4.6K
54,405+3K
51,427—

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/@ava/babel-plugin-throws-helper. First seen Oct 16, 2026; last successful collection Oct 27, 2026. See the methodology.