@asarua/webchalk
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@asarua/webchalk

A library for outputting colored fonts in browser developer tools

Usage

import { chalk } from '@asarua/webchalk'


// colored font
chalk`123${chalk.red('456')}789`

// colored background
chalk`123${chalk.bgRed(`456`)}789`

// compose
chalk`123${chalk.bgRed(chalk.white('456'))}`

// custom font or background colors
const aurora = chalk.color('#01c2c3')
const bgHua = chalk.bg('#666666')
chalk`123${aurora('aurora')}${bgHua('bgHua')}`

/@asarua/webchalk/

    Package Sidebar

    Install

    npm i @asarua/webchalk

    Weekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    11.8 kB

    Total Files

    7

    Last publish

    Collaborators

    • asarua