Console-badge

console-badge

🎨 Create simple badges in the browser console

console-badge fun little less than 1kB util that helps us to console log badges that can be customized and also provides popular shields.io badge style as the default style.

Get it: npm install console-badge

Sample usage:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import * as consoleBadge from 'console-badge';

consoleBadge.log({
  mode: 'shields.io',
  leftText: 'console-badge',
  rightText: 'hello world 🚀',
  rightBgColor: '#ffc107',
  rightTextColor: '#1a1a1a'
});

consoleBadge.log({
  leftText: '😎 Check out our code here:',
  leftTextColor: '#000',
  leftBgColor: '#ddd',
  rightText: 'https://nmotw.in',
  rightBgColor: '#000'
});

GIF FTW!

console-badge

Suggest a module

Comments