An open API service indexing awesome lists of open source software.

https://github.com/xotic750/cross-console-x

A cross-environment fix for missing methods.
https://github.com/xotic750/cross-console-x

browser console javascript logging nodejs

Last synced: 2 months ago
JSON representation

A cross-environment fix for missing methods.

Awesome Lists containing this project

README

          


Travis status


Dependency status


devDependency status


npm version


jsDelivr hits


bettercodehub score


Coverage Status

## cross-console-x

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](https://developer.mozilla.org/en/docs/Web/API/console)
**Example**

```js
import con from 'cross-console-x';

con.log('hi');
con.stamp('log', 'hi');
```