Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/janhancic/console.real
A simple augmentation of the built-in console object in the browser.
https://github.com/janhancic/console.real
Last synced: 22 days ago
JSON representation
A simple augmentation of the built-in console object in the browser.
- Host: GitHub
- URL: https://github.com/janhancic/console.real
- Owner: janhancic
- License: mit
- Created: 2014-01-26T16:21:58.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-09T20:50:24.000Z (over 10 years ago)
- Last Synced: 2024-04-14T19:15:47.044Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 176 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# console.real
A simple augmentation of the built-in `console` object in the browser. Console.real will log objects as they ware at
the time of logging and not as they are at the time you inspect the log line in the console. See my blog post
[console.log() is not a log](http://hancic.info/console-log-is-not-a-log) for details.# Usage
Include the `build/console.real.min.js` file into your web page. Then you can call the following methods on the
`console.real` object in the same way as regular `console` methods: log, info, warn, error.You can also call `console.real.install()` which will replace the console methods with the augmented ones.
# Notes
Internally every passed argument is deep cloned, which means there are performance penalties for using this.# Browser support
Should work in ES5 compliant browsers that have: console, JSON, Array#forEach and Array#map objects/methods.## License
Licensed under MIT. See `LICENSE.md` file for details.