Skip to content
JS
Package

lolex

Fake JavaScript timers

v6.0.0, 4 Feb 2020BSD-3-ClauseESM + CommonJSTypes: None
$ npm install lolex
Deprecated on npm
lolex has been renamed to @sinonjs/fake-timers. No API changes made. Please use the new package instead

Key numbers

As of 25 Sept 2026
Weekly downloads
2.2m
-18% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
6 years ago
v6.0.0
GitHub stars
860
126 forks
Open issues / PRs
5 / 15
Contributors
-
Commits, last 52 weeks
88

Downloads

Last week 2026-09-15 to 2026-09-21
02m4m6mSept 2025Mar 2026Sept 2026High 4.3m (21 Oct 2025)Low 1.3m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

2,193,185 downloads last week, 9,931,888 in the last month. The 12-month change of -18% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
044 in total
Latest version
6.0.0, 4 Feb 20206 years ago
First published
12 Nov 2014
Last push to GitHub
10 Sept 202614 days before the snapshot
Repository archived
No
Open issues
5
Open pull requests
15
Commits, last 52 weeks
88
Dependents on npm
-

Major versions

  1. v6 first release 6.0.0, 4 Feb 2020
  2. v5 first release 5.0.0, 7 Oct 2019
  3. v4 first release 4.0.1, 17 Apr 2019
  4. v3 first release 3.0.0, 8 Oct 2018
  5. v2 first release 2.0.0, 13 Jul 2017
  6. v1 first release 1.0.0, 12 Nov 2014

Recent releases

VersionPublished
6.0.04 Feb 2020
5.1.219 Dec 2019
5.1.121 Oct 2019
5.1.014 Oct 2019
5.0.110 Oct 2019
5.0.07 Oct 2019
4.2.04 Aug 2019
4.1.04 Jun 2019
4.0.117 Apr 2019
3.1.011 Feb 2019
3.0.08 Oct 2018
2.7.519 Sept 2018
2.7.45 Sept 2018
2.7.35 Sept 2018
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
133 kB
Dependencies (1)
@sinonjs/commons
npm install lolex
  • jsDelivrhttps://cdn.jsdelivr.net/npm/lolex@6.0.0/
  • unpkghttps://unpkg.com/lolex@6.0.0/
  • esm.shhttps://esm.sh/lolex@6.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): deprecated; no category.