1.0.1 • Published 3 years ago

chalk-ex v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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!'));

npm.io

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);

npm.io

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'));

npm.io

All color:

npm.io