Skip to content
JS
Package

mitm

Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.

v1.7.3, 26 Aug 2024AGPL-3.0-or-later WITH GPL-3.0-linking-exceptionCommonJSTypes: NoneTesting
$ npm install mitm

Key numbers

As of 25 Sept 2026
Weekly downloads
30.4k
-50% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
2 years ago
v1.7.3
GitHub stars
659
50 forks
Open issues / PRs
13 / 2
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
050k100k150kSept 2025Mar 2026Sept 2026High 129.2k (5 May 2026)Low 15.6k (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.

30,375 downloads last week, 162,984 in the last month. The 12-month change of -50% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
1.7.3, 26 Aug 20242 years ago
First published
-
Last push to GitHub
26 Aug 2024760 days before the snapshot
Repository archived
No
Open issues
13
Open pull requests
2
Commits, last 52 weeks
0
Dependents on npm
39

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>= 0.10.24
Runtimes
-
Unpacked size (npm)
57 kB
Dependencies (1)
semver
npm install mitm
  • jsDelivrhttps://cdn.jsdelivr.net/npm/mitm@1.7.3/
  • unpkghttps://unpkg.com/mitm@1.7.3/
  • esm.shhttps://esm.sh/mitm@1.7.3
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.