npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

stdout-stderr

0.1.9 • Public • Published

stdout-stderr

mock stdout and stderr

Version CircleCI Appveyor CI Codecov Greenkeeper Known Vulnerabilities Downloads/week License

Usage:

const {stdout, stderr} = require('stdout-stderr')
 
// start mocking stdout
stdout.start()
 
console.log('writing to stderr')
 
// stop mocking stdout
stdout.stop()
 
// options
 
// strips ansi colors by default, to disable:
stdout.stripColor = false
 
// also output to screen
stdout.print = true

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

Keywords

install

npm i stdout-stderr

Downloadsweekly downloads

12,987

version

0.1.9

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability