Skip to content
JS
Package

raf-stub

Accurate and predictable testing of requestAnimationFrame and cancelAnimationFrame

v3.0.0, 9 Jul 2019MITESM + CommonJSTypes: NoneTesting
$ npm install raf-stub

Key numbers

As of 25 Sept 2026
Weekly downloads
13.3k
-7% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
7 years ago
v3.0.0
GitHub stars
110
1 forks
Open issues / PRs
0 / 14
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
010k20k30kSept 2025Mar 2026Sept 2026High 27.7k (21 Oct 2025)Low 8.8k (31 Mar 2026)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

13,338 downloads last week, 62,247 in the last month. The 12-month change of -7% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
3.0.0, 9 Jul 20197 years ago
First published
-
Last push to GitHub
4 Jan 20231,360 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
14
Commits, last 52 weeks
0
Dependents on npm
2

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
42 kB
Dependencies (0)
None
npm install raf-stub
  • jsDelivrhttps://cdn.jsdelivr.net/npm/raf-stub@3.0.0/
  • unpkghttps://unpkg.com/raf-stub@3.0.0/
  • esm.shhttps://esm.sh/raf-stub@3.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
snap-shot-core26.4k-5 years agoCommonJS-
jest-in-case21.6k-9 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.