1.0.5 • Published 11 months ago

color-log-package v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Version Downloads Total License CodeFactor

Color Log Package

The creation of this package is to help identify precious logs in applications

Installation

yarn add color-log-package
//- or
npm install color-log-package

Usage

There are two ways to use this package. The first way to use our aliases is to be fast and responsive.

import log from 'color-log-package'

const data = { key: 'test' }
log('Success', data)
log('Warning', data)
log('Error', data)

Output:

default The second you can define the color, the styles and the message that will be displayed. Just passing an array with the styles you want

import log from 'color-log-package'

const data = { key: 'test' }
const setupColor = ['BgBlue', 'Bright', 'FgWhite'];

log('Test Custom Log', data, setupColor);

Output:

custom Use our list below to find out what color and style parameters you can use:

parameteroutput
ResetReset
BrightBright
DimDim
UnderscoreUnderscore
BlinkBlink
ReverseReverse
HiddenHidden
FgBlackFgBlack
FgRedFgRed
FgGreenFgGreen
FgYellowFgYellow
FgBlueFgBlue
FgMagentaFgBlue
FgCyanFgCyan
FgWhiteFgWhite
FgGrayFgGray
BgBlackBgBlack
BgGreenBgGreen
BgYellowBgYellow
BgBlueBgBlue
BgMagentaBgMagenta
BgCyanBgCyan
BgWhiteBgWhite
BgGrayBgGray

License

The code is available under the MIT License.

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.1

11 months ago