1.0.1 • Published 6 years ago
@lianj-fex/css-console v1.0.1
这是什么?
这个库是实现console.log()支持 %c 占位符的特性的一个垫片
支持
暂时只支持 node v8.4
以上版本
如何使用?
const console = require('@lianj/css-console');
console.log('%c INFO ', 'background: red');
支持的CSS?
- background-color: hex
- background-color: keyword
- color: hex
- color: keyword
- background: hex (仅支持背景颜色)
- background: keyword (仅支持背景颜色)
- text-decorator: underline
- font-weight: bold
1.0.1
6 years ago