Package Exports
- brush-log
- brush-log/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (brush-log) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
brush-log
beautify your console
Installation
$ npm install brush-log --saveUsuage
import log from 'brush-log';
log('列表', { a: 1 });
// 你可以自定义背景色
log('列表', { a: 1 }, 'red');
// 你可以全局设定brush-log的颜色,支持background和color
window.brushLog = {
background: 'linear-gradient(red, yellow, blue)',
color: '#000'
}