Skip to content
JS
Package

node-mocks-http

Mock 'http' objects for testing Express, Next.js and Koa routing functions

v1.18.1, 16 Jul 2026MIT-Types: -Testing
$ npm install node-mocks-http

Key numbers

As of 25 Sept 2026
Weekly downloads
1.5m
+36% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 months ago
v1.18.1
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3mSept 2025Mar 2026Sept 2026High 2.4m (18 Aug 2026)Low 485.3k (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.

1,451,644 downloads last week, 7,279,067 in the last month. The 12-month change of +36% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
270 in total
Latest version
1.18.1, 16 Jul 20262 months ago
First published
18 Feb 2012
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
180

Major versions

  1. v1 first release 1.0.0, 2 Mar 2013
  2. v0 first release 0.0.1, 18 Feb 2012

Recent releases

VersionPublished
1.18.116 Jul 2026
1.18.07 Jul 2026
1.17.22 May 2025
1.17.11 May 2025
1.17.027 Apr 2025
1.16.210 Dec 2024
1.16.14 Oct 2024
1.16.09 Sept 2024
1.15.131 Jul 2024
1.15.021 Jun 2024
1.14.13 Jan 2024
1.14.012 Dec 2023
1.13.014 Aug 2023
1.12.213 Mar 2023
Module format
-Not determined from package.json
TypeScript types
-
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
-
Dependencies (0)
None
npm install node-mocks-http
  • jsDelivrhttps://cdn.jsdelivr.net/npm/node-mocks-http@1.18.1/
  • unpkghttps://unpkg.com/node-mocks-http@1.18.1/
  • esm.shhttps://esm.sh/node-mocks-http@1.18.1
PackageWeekly downloadsGzipLast releaseModuleComparison
mockttp399.2k-13 days agoCommonJS-
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet.