nock-json-recorder

HTTP Server mocking for Node.js

npm install nock-json-recorder
17 downloads in the last month

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();
npm loves you