Intercept and mock outgoing Node.js 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. Super useful when testing code that hits remote servers.
I tried to sort out whether this was possible to fix for node 8.12.x and 9 so I could open a PR, but it wasn't obvious to me if this bug could be circumvented without the fix in node core.
A node bug is causing the library to break on 8.12.x and 9.x. As of today, the last compatible version of node is 8.11.4.
I ran the build on travis with all 8.x minor versions: https://travis-ci.org/alexkwolfe/node-mitm/builds/427762391
I tried to sort out whether this was possible to fix for node 8.12.x and 9 so I could open a PR, but it wasn't obvious to me if this bug could be circumvented without the fix in node core.