Skip to content

nickasd/javascript-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Console

A JavaScript console that runs in the browser.

  • Intercept logs and errors from one or more windows/iframes
  • Ability to set a custom color for each window
  • Inspect logged objects inline with a click
  • Filter by name

Usage

Intercepting logs and errors from a window:

var view = document.getElementById('console');
var jsConsole = new JavaScriptConsole(view);
jsConsole.attachToWindow(window);

Programmatically adding logs:

var clientId = 'client-1';
jsConsole.setColor(clientId, 'green');
var args = ['Logging with clientId', clientId];
jsConsole.append(clientId, 'log', null, ...args);

A full example is available at example.

Install with NPM

npm install https://github.com/nickasd/javascript-console

Try it out

npm install
npm start
// in the browser
open http://localhost:8080

About

A JavaScript console for the browser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published