stdout-stderr
mock stdout and stderr
Last updated 2 months ago by dickeyxxx .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install stdout-stderr 
SYNC missed versions from official npm registry.

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|*.

Current Tags

  • 0.1.13                                ...           latest (2 months ago)

15 Versions

  • 0.1.13                                ...           2 months ago
  • 0.1.12                                ...           2 months ago
  • 0.1.11                                ...           2 months ago
  • 0.1.10                                ...           2 months ago
  • 0.1.9                                ...           2 years ago
  • 0.1.8                                ...           2 years ago
  • 0.1.7                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.5                                ...           2 years ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 1
This Week 32
This Month 27
Last Day 4
Last Week 20
Last Month 65
Dependencies (2)
Dev Dependencies (13)

Copyright 2014 - 2016 © taobao.org |