JSPM

  • Created
  • Published
  • Downloads 5260538
  • Score
    100M100P100Q205099F
  • License ISC

Colorize text in terminal and console output with ANSI colors & styles

Package Exports

  • ansis
  • ansis/colors

Readme

node Test codecov node

The Node.js library to colorize terminal with ANSI colors & styles, smaller and faster alternative to Chalk.

Usage example

import ansis, { red, green, black, ansi256, hex } from 'ansis';

ansis.cyan('path/to/file')
green('Succeful!')
red`Error!`
black.bgYellow`Warning!`
ansi256(214)`Orange`
hex('#E0115F').bold.underline('Hello TrueColor!')

🚀 Install and Quick Start
📖 Read full docs on GitHub

🏆 Compare & Benchmark

See the features comparison and benchmarks of most popular terminal colors libraries:
ansis, chalk, kleur, kolorist, colors.js, colorette, picocolors, ansi-colors, cli-color, colors-cli.

💡 Highlights

ANSI demo

Open in StackBlitz

License

ISC