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

1.0.7 • Public • Published

beauty-log

Customize your console log!

Installation

npm i beauty-console-log

use

// import by object
import beautyLog from 'beauty-console-log';

beautyLog.red('test text color!')

beautyLog.bgRed('test background color!')

beautyLog.info(logData)

beautyLog.success(logData)

beautyLog.warning(logData)

beautyLog.error(logData)



// import by function
import { red, bgRed, success } from 'beauty-console-log';

red('test text color!')

text color

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

background color

  • bgBlack
  • bgRed
  • bgGreen
  • bgYellow
  • bgBlue
  • bgMagenta
  • bgCyan
  • bgGray

text style

  • bold

icon log

  • info
  • success
  • warning
  • error

Readme

Keywords

none

Package Sidebar

Install

npm i beauty-console-log

Weekly Downloads

2

Version

1.0.7

License

ISC

Unpacked Size

10.3 kB

Total Files

14

Last publish

Collaborators

  • mrchao