npm

esc-colors
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

esc-colors

Lightweight (446 bytes) alternative to colors.

Project goals

  • No dependencies
  • Small, simple, easy to audit, yourself
  • Works on Linux or Mac (ANSI terminals)
  • No nonsense
  • Dependable, there won't be any radical updates in future.

If I want to add features I'll make a new package and will rather mention it in this readme than change this package.

Installation

  1. npm install esc-colors

Example

import colors from 'esc-colors';

console.log(colors.green('Hello world'));

Object.entries(colors).forEach( ([ colorName, colorF ]) => console.log(colorF(colorName)) );

image

Notes

Have fun!

Say thanks

Star the repo https://github.com/softwarecreations/esc-colors

PR's or issues

Welcome

License

MIT

Package Sidebar

Install

npm i esc-colors

Weekly Downloads

8

Version

0.1.5

License

MIT

Unpacked Size

4.04 kB

Total Files

6

Last publish

Collaborators

  • softwarecreations