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.
- Host: GitHub
- URL: https://github.com/xotic750/cross-console-x
- Owner: Xotic750
- License: mit
- Created: 2017-06-29T19:53:24.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T23:09:52.000Z (over 3 years ago)
- Last Synced: 2025-03-02T00:02:38.012Z (over 1 year ago)
- Topics: browser, console, javascript, logging, nodejs
- Language: JavaScript
- Size: 7.04 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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');
```