Skip to content

royriojas/shim-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM Version Build Status

shim-console

A shim for the global console object. It will do nothing if the console object exists

Install

npm i --save shim-console

Usage

// at the entry point of your app
require('shim-console').init();

// now you can just do
// console.log, console.debug, etc
// on environment that don't provide the
// console object (probably only ie9 at this time)

License

MIT

Changelog

Changelog

About

simple shim for missing console object. It creates a dummy console on environments that do not provide a global.console object

Resources

License

Stars

Watchers

Forks

Packages

No packages published