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的表现,注意要使用驼峰属性名
window.brushLog = {
backgroundColor: 'skyblue',
border: '2px dashed #000',
}