这个库是实现console.log()支持 %c 占位符的特性的一个垫片
暂时只支持 node v8.4
以上版本
const console = require('@lianj/css-console');
console.log('%c INFO ', 'background: red');
- background-color: hex
- background-color: keyword
- color: hex
- color: keyword
- background: hex (仅支持背景颜色)
- background: keyword (仅支持背景颜色)
- text-decorator: underline
- font-weight: bold