1 var jsBase
= __dirname
+ '/../js';
2 var un
= require(jsBase
+ '/unrequire');
3 un
.require
.config({ baseUrl
: jsBase
});
5 var input
= process
.stdin
;
6 var output
= process
.stdout
;
8 un
.require([ 'fullReport' ], function (fullReport
) {
10 input
.on('data', function (data
) {
11 jsonData
+= data
.toString('utf8');
14 input
.on('end', function () {
15 var data
= JSON
.parse(jsonData
);
16 var csv
= fullReport
.csvReport(data
.userData
.results
, data
.userData
.agentMetadata
);