0.1.13 • Published 4 years ago

stdout-stderr v0.1.13

Weekly downloads
77,379
License
MIT
Repository
github
Last release
4 years ago

stdout-stderr

mock stdout and stderr

Version Known Vulnerabilities Downloads/week License

Usage:

const {stdout, stderr} = require('stdout-stderr')

stdout.start()                                // start mocking stdout
console.log('writing to stdout')              // this will not be displayed
stdout.stop()                                 // stop mocking stdout
assert(stdout.output === 'writing to stdout') // view the output


/* options */
stdout.stripColor = false // disable automatic ansi code stripping
stdout.print = true       // also output to screen

This uses the debug module so you can also see the output by setting DEBUG=stdout|stderr|*.

0.1.10

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.13

4 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.0

6 years ago