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.
pnpm
pnpm add chalk chalk-ex
npm
npm i chalk chalk-ex
yarn
yarn add chalk chalk-ex
import { label, text } from 'chalk-ex';
console.log(label.green('Hello world!'), text.orange('Hello world!'));
- log
- info
- success
- warn
- error
import { label } from 'chalk-ex';
console.log(label.log, label.info, label.success, label.warn, label.error);
- 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: