1.0.2 • Published 6 years ago

styled-console-log v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Usage

Styled console-log function.
(console.logにスタイルを付与します。)

sample.png

Setup

yarn add styled-console-log
import Log from 'styled-console-log'

Log('something warnning message', 'warn')

Log('something error message\n\nmultiple lines...', 'error')

Log('something info message', 'info')

Log('something success message\n\n3rd parameter is UPPERCASE bool', 'success', true)

Types

Provided with 4 styles now.

  • 'warn'
  • 'error'
  • 'info'
  • 'success'

Next

  • Customization features
  • Animate style