Package Exports
- brush-log
- brush-log/dist/esm/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
给控制台来点颜色!
安装
npm install brush-log --save使用
import brush from 'brush-log'
console.log(...brush.black('对象', { a: 1 }))或者
import { black } from 'brush-log'
console.log(...black('对象', { a: 1 }))支持的颜色
blackredgreenyellowbluemagentacyan
配置项
import { mergeConfig } from 'brush-log'
mergeConfig({
radial: 0,
})radial
Type: number
Default: 100
径向渐变的起始百分比,范围 0~100,数值越小,颜色越浅。