@je-es/ansi
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

@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

Package Sidebar

Install

npm i @je-es/ansi

Weekly Downloads

2

Version

1.1.4

License

MIT

Unpacked Size

65.3 kB

Total Files

9

Last publish

Collaborators

  • maysara-ecs