<a href="https://travis-ci.org/Xotic750/cross-console-x" title="Travis status"> <img src="https://travis-ci.org/Xotic750/cross-console-x.svg?branch=master" alt="Travis status" height="18"> <a href="https://david-dm.org/Xotic750/cross-console-x" title="Dependency status"> <img src="https://david-dm.org/Xotic750/cross-console-x/status.svg" alt="Dependency status" height="18"/> <a href="https://david-dm.org/Xotic750/cross-console-x?type=dev" title="devDependency status"> <img src="https://david-dm.org/Xotic750/cross-console-x/dev-status.svg" alt="devDependency status" height="18"/> <a href="https://badge.fury.io/js/cross-console-x" title="npm version"> <img src="https://badge.fury.io/js/cross-console-x.svg" alt="npm version" height="18"> <a href="https://www.jsdelivr.com/package/npm/cross-console-x" title="jsDelivr hits"> <img src="https://data.jsdelivr.com/v1/package/npm/cross-console-x/badge?style=rounded" alt="jsDelivr hits" height="18"> <a href="https://bettercodehub.com/results/Xotic750/cross-console-x" title="bettercodehub score"> <img src="https://bettercodehub.com/edge/badge/Xotic750/cross-console-x?branch=master" alt="bettercodehub score" height="18"> <a href="https://coveralls.io/github/Xotic750/cross-console-x?branch=master" title="Coverage Status"> <img src="https://coveralls.io/repos/github/Xotic750/cross-console-x/badge.svg?branch=master" alt="Coverage Status" height="18">
A cross-environment fix for missing methods.
module.exports
⏏The cross-console-x object provides access to the browser's debugging console (e.g., the Web Console in Firefox). The specifics of how it works vary from browser to browser, but there is a de facto set of features that are typically provided.
Missing methods are shimmed when possible, otherwise they provide no operation.
Additional stamp() method provided. A thin wrapper to any method that prepends a timestamp.
Kind: Exported member
See: https://developer.mozilla.org/en/docs/Web/API/console
Example
import con from 'cross-console-x';
con.log('hi');
con.stamp('log', 'hi');