Skip to content

An easy use console print terminal with string styling with chalk.

License

Notifications You must be signed in to change notification settings

HaolinHom/chalk-ex

Repository files navigation

chalk-ex

An easy use console print terminal with string styling with chalk.

This package is now pure ESM, Require Node.js ^12.20.0 || ^14.13.1 || >=16.0.0.

Installation

pnpm

pnpm add chalk chalk-ex

npm

npm i chalk chalk-ex

yarn

yarn add chalk chalk-ex

Usage

import { label, text } from 'chalk-ex';

console.log(label.green('Hello world!'), text.orange('Hello world!'));

use with the preset label

  • log
  • info
  • success
  • warn
  • error
import { label } from 'chalk-ex';

console.log(label.log, label.info, label.success, label.warn, label.error);

use with the preset color

  • red
  • pink
  • purple
  • deepPurple
  • indigo
  • blue
  • lightBlue
  • cyan
  • teal
  • green
  • lightGreen
  • lime
  • yellow
  • amber
  • orange
  • deepOrange
  • brown
  • gray
  • blueGray
  • white
  • black
import { label, text } from 'chalk-ex';

console.log(label.green('Foo'), text.green('bar'));

All color:

About

An easy use console print terminal with string styling with chalk.

Resources

License

Stars

Watchers

Forks

Packages

No packages published