/fauxconsole

fork of fauxconsole from http://icant.co.uk/sandbox/fauxconsole/

Primary LanguageJavaScript

fauxconsole - lightweight console implementation for IE

More about original fauxconsole at http://icant.co.uk/sandbox/fauxconsole/

This fork implements console in AMD format, so you should use AMD loader.

Example

In .html file:

<script type="text/javascript">
curl = {
    paths: {
        "console": "fauxconsole"
    }
};
</script>
<script src="curl.js" type="text/javascript"></script>
<script type="text/javascript">
        curl(['console', 'another_amd']);
</script>

In another_amd.js file:

define(['console'], function() {
  console.log('Hello!!!');
}

If window.console exists in your environment fauxconsole does nothing (not even loads css file in my case).