brush-log
TypeScript icon, indicating that this package has built-in type declarations

2.4.1 • Public • Published

brush-log

Bring some color to the console!

NPM version

Install

npm install brush-log --save

Usage

import brush from 'brush-log'

console.log(...brush.black('Hello', { a: 1 }))

Or

import { black } from 'brush-log'

console.log(...black('Hello', { a: 1 }))

Supported colors

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan

Options

import { mergeConfig } from 'brush-log'

mergeConfig({
  radial: 0,
})

radial

Type: number Default: 100

Starting percentage of a radial gradient, ranging from 0 to 100. The smaller the value, the lighter the color.

fontSize

Type: string Default: inherit

The font size of the output.

Readme

Keywords

Package Sidebar

Install

npm i brush-log

Weekly Downloads

2

Version

2.4.1

License

MIT

Unpacked Size

14.8 kB

Total Files

8

Last publish

Collaborators

  • dingff