console-watch

1.0.2 • Public • Published

console-watch

Track console.log/warn/error/etc...

Install

npm install console-watch

Usage

 
// Require it
var consoleWatch = require('console-watch');
 
consoleWatch(function(getResults){
 
    // Log some stuff
    console.log('foo');
 
    // Get the results (and reset console back to it's original state.
    var results = getResults();
});
 

Dependents (0)

Package Sidebar

Install

npm i console-watch

Weekly Downloads

6

Version

1.0.2

License

ISC

Last publish

Collaborators

  • korynunn