Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

colsys

kettei-sproutty30(MIT OR Apache-2.0)0.2.0TypeScript support: included

A light and zero-dependecy terminal string styling library

colsys, color, colors, terminal, console, node:utils, styleText, style, styles, format, log, text, terminal-colors, text-styling, terminal-styling, console-colors, terminal-effects, color-toolkit, console-effects

readme

colsys

npm bundle size NPM Version NPM Downloads

Colsys is a lightweight and zero-dependency terminal string styling library designed to provide easy and efficient styling options for terminal outputs. It relies specifically on node:utils, which is a part of Node.js and is currently in active development.

npm i colsys

Usage

import colsys from 'colsys';

// modifiers
colsys.bold("bold");

// colors
colsys.red("red");

// background
colsys.bgRed("bgRed");

// chaining
colsys.bold.bgBlack.white("Hello, world!");

Roadmap

  • <input checked="" disabled="" type="checkbox"> Typescript support
  • <input disabled="" type="checkbox"> Chalk basic compatibility
    • <input checked="" disabled="" type="checkbox"> Combine styled and normal strings
    • <input checked="" disabled="" type="checkbox"> Compose multiple styles using the chainable API
    • <input checked="" disabled="" type="checkbox"> Pass in multiple arguments
    • <input checked="" disabled="" type="checkbox"> Nest styles
    • <input disabled="" type="checkbox"> Nest styles of the same type even (color, underline, background). (styleText doesn't seems to support this).
    • <input checked="" disabled="" type="checkbox"> Works with ES2015 template literal
  • <input disabled="" type="checkbox"> Chalk advanced compatibility
    • <input disabled="" type="checkbox"> RGB
    • <input disabled="" type="checkbox"> HEX

LICENSE

All code in this repository is dual-licensed under either: