cclg
v1.0.3
Published
console.log with customized style
Downloads
2
Readme
Dev
Install
npm i
Run Dev
npm run dev
> [email protected] dev
> vite
VITE v4.2.1 ready in 143 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h to show help
Open Browser Console
Package Useage
Install package
npm i -D cclg
Sample Code
import { cclg } from 'cclg'
cclg({ label: 'any label' })
cclg({ label: 'color', color: '#ff1493' })
cclg({ label: 'color bgColor', color: '#ffffff', bgColor: '#39c093' })
cclg({ label: 'color bgColor value', color: '#ffffff', bgColor: '#39c093', value: '123456789' })
cclg({ label: 'cStyle', cStyle: 'color: #ffffff; background: #ff8c00; padding: 4px 12px;' })
cclg({ label: 'type log', type: 'log' })
cclg({ label: 'type info', type: 'info' })
cclg({ label: 'type warn', type: 'warn' })
cclg({ label: 'type error', type: 'error' })