stdout-stderr
mock stdout and stderr
Usage:
const stdout stderr = stdoutstart // start mocking stdoutconsole // this will not be displayedstdout // stop mocking stdout // view the output /* options */stdoutstripColor = false // disable automatic ansi code strippingstdoutprint = true // also output to screen
This uses the debug module so you can also see the output by setting DEBUG=stdout|stderr|*
.