node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

nock-json-recorder

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();