nock-json-recorder

HTTP Server mocking for Node.js

nock-json-recorder

Just a quick hack on the excellent Nock module that allows recorder outputs to be retrieved in JSON format.

var nock = require('nock-json-recorder');
 
nock.recorder.rec(true);
var responses = nock.recorder.playJson();