0.2.0 • Published 11 months ago

colsys v0.2.0

Weekly downloads
-
License
(MIT OR Apache-2....
Repository
github
Last release
11 months ago

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

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

LICENSE

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

0.2.0

11 months ago

0.1.9

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago