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

0.2.0 • Public • Published

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

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

LICENSE

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

/colsys/

    Package Sidebar

    Install

    npm i colsys

    Weekly Downloads

    1

    Version

    0.2.0

    License

    (MIT OR Apache-2.0)

    Unpacked Size

    5.64 kB

    Total Files

    5

    Last publish

    Collaborators

    • kettei-sproutty