🎨 console-badge
Create simple badges in the browser console.
Tiny, easy-to-use package. No dependencies.
Features
- Tiny: Less than 1kB (minified and gzipped). No dependencies. ES5-compliant code.
- Customizable: Change the font colors, background colors and texts. Tip: You can use the popular shields.io badge style. 😎
- Flexible: Support for console.log / .warn / .error / .info.
Installation
$ npm install console-badge# OR $ yarn add console-badge
Usage
; consoleBadge; consoleBadge;
💡 Please take a look at the API documentation to find out what the different options do and which other console types are supported.
Output:
For prototyping or learning purposes, you can use the latest version with:
For production, we recommend linking to a specific version number and build to avoid unexpected breakage from newer versions:
// Global variableconsoleBadge;// Property in the window objectwindowconsoleBadge;
⚠ NPM is the recommended installation method. It pairs nicely with module bundlers such as webpack.
Documentation
Show your support
Please ⭐️ this repository if this project helped you!
Issues
Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.
Changelog
Detailed changes for each release are documented in the release notes.
Contribution
Please make sure to read the Contributing Guide before making a pull request.
Thank you to all the people who have already contributed to this project!
License
Copyright (c) 2019-present, Dennis Herzberg