Skip to content
/ ansi Public

A robust and standardized solution for handling `ANSI escape sequences` in your applications.

License

Notifications You must be signed in to change notification settings

je-es/ansi

Repository files navigation

@je-es/ansi

This repository provides a robust and standardized solution for handling ANSI escape sequences in your applications.

ANSI escape sequences are used to control text formatting, color, and other output options on text terminals.

This library simplifies the process of incorporating these sequences, ensuring consistent behavior across different environments.

  • 📥 Usage

    npm i @je-es/ansi
  • 🌟 Syntax

    import { style } from '@je-es/ansi';
    
    style('Hello World',
    {
        fg      ?: string('name' | '#hex') | array[r,g,b],
        bg      ?: string('name' | '#hex') | array[r,g,b],
        attr    ?: string | string []
    })

Documentation


Made with ❤ by Maysara Elshewehy

About

A robust and standardized solution for handling `ANSI escape sequences` in your applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages