Displaying Newman Node stdout on webpage

Hi, I’m using Newman as a node js library and would like to display the output of the CLI reporter on a webpage in real-time.
I was able to do this when running newman via command line in a bash script by using spawn, but I can’t figure out a way to get it working now I’m using newman as a library. I’ve tried sockets.io but this only seems to accept json formatted data.

Does anyone know if this is possible? Thanks!

  • Node 10.15.3
  • Mac OS 10.14.5
  • Newman 3.8.3

Would I need to create a custom reporter that is basically just the CLI reporter that emits events to socket.io listeners?