1.0.5 • Published 1 year ago

@je-es/style v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@je-es/style

A utility for styling text output, providing customizable formatting options such as foreground and background colors, text attributes, padding, borders, width, and alignment.

  • 📥 Usage

    npm i @je-es/style
  • 🌟 Syntax

    import { style } from '@je-es/style';
    
    style('Hello World',
    {
        fg      ?: t_color,     // string('name' | '#hex') | array[r,g,b]
        bg      ?: t_color,     // ...
        attr    ?: t_attr,      // string | string [],
    
        prefix  ?: t_prefix,    // { val : string, fg ?: t_color, bg ?: t_color }
        suffix  ?: t_prefix,    // ...
    
        padding ?: t_padding,   // { top, bottom, right, left }
        border  ?: t_border,    // { width ?: number, fg ?: t_color, bg ?: t_color }
    
        align   ?: t_align      // 'center' | 'right' | 'left'
    
        width   ?: number,
    })

Documentation


Made with ❤ by Maysara Elshewehy

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago