Skip to content

JavaScript library that provides a console for debugging web apps in archaic embedded environments without one

License

Notifications You must be signed in to change notification settings

jessety/FauxConsole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FauxConsole

A fake browser console for debugging environments without one

Setup

Include both the JavaScript and CSS dependencies

<script type="text/javascript" src="FauxConsole.js"></script>
<link rel="stylesheet" href="FauxConsole.css" />

Usage

To enable or disable the console, call FauxConsole.enable() or FauxConsole.disable() respectively.

FauxConsole.enable();

// console.log() will now be sent to the FauxConsole instead

console.log('Hello, world!');
console.warn({ test: true });

FauxConsole.disable();

// The system console will receive console.log() commands instead, if it exists

License

MIT © Jesse Youngblood

About

JavaScript library that provides a console for debugging web apps in archaic embedded environments without one

Topics

Resources

License

Stars

Watchers

Forks