chalk-ex
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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:

Readme

Keywords

Package Sidebar

Install

npm i chalk-ex

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

8.54 kB

Total Files

7

Last publish

Collaborators

  • aircan