@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.
-
npm i @je-es/ansi
-
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 [] })
Made with ❤ by Maysara Elshewehy