You can capture network requests in JS using nock:
nock
const nock = require('nock') nock.recorder.rec()
Which will then output all data to stdout.