lski-console-shim

1.0.3 • Public • Published

Lski Console Shim

A ponyfill to prevent errors caused by using the console in IE when the developer tools are not open.

It checks if the window object and console object exists and if the does it by creating an empty no-op function that simply does nothing when called.

Install

// npm
npm install lski-console-shim
 
//bower
bower install lski-console-shim
 
//manually download the file and reference it via the script tag
<script type='text/javascript' src='lski-console-shim.js'></script>

Build

The distribution build is created via gulp using node. Run the following from the command line to install the node dependancies and run the gulp build step. Note: Node needs to be installed on your system.

npm install
gulp

Package Sidebar

Install

npm i lski-console-shim

Weekly Downloads

2

Version

1.0.3

License

MIT

Last publish

Collaborators

  • lski